(uri: string, view?: EditorView)
| 152 | } |
| 153 | |
| 154 | closeFile(uri: string, view?: EditorView): void { |
| 155 | const file = this.#getFileEntry(uri); |
| 156 | if (!file) return; |
| 157 | |
| 158 | if (view && file.views.has(view)) { |
| 159 | file.views.delete(view); |
| 160 | } |
| 161 | |
| 162 | if (!file.views.size) { |
| 163 | this.client.didClose(uri); |
| 164 | this.#removeFileEntry(file); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | getFile(uri: string): AcodeWorkspaceFile | null { |
| 169 | return this.#getFileEntry(uri); |
no test coverage detected