MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / removeWorkspaceFolder

Method removeWorkspaceFolder

src/cm/lsp/workspace.ts:289–304  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 4

#sendNotificationMethod · 0.95
#getFolderNameMethod · 0.95
#logMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected