(uri: string)
| 287 | } |
| 288 | |
| 289 | removeWorkspaceFolder(uri: string): boolean { |
| 290 | if (!this.#workspaceFolders.has(uri)) { |
| 291 | return false; |
| 292 | } |
| 293 | |
| 294 | this.#workspaceFolders.delete(uri); |
| 295 | this.#sendNotification("workspace/didChangeWorkspaceFolders", { |
| 296 | event: { |
| 297 | added: [], |
| 298 | removed: [{ uri, name: this.#getFolderName(uri) }], |
| 299 | }, |
| 300 | }); |
| 301 | console.info(`[LSP:Workspace] Removed workspace folder: ${uri}`); |
| 302 | this.#log("info", `Workspace folder removed: ${uri}`); |
| 303 | return true; |
| 304 | } |
| 305 | } |
nothing calls this directly
no test coverage detected