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

Method #getFolderName

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

Source from the content-addressed store, hash-verified

235 // ========================================================================
236
237 #getFolderName(uri: string): string {
238 const parts = uri.replace(/\/$/, "").split("/");
239 return parts[parts.length - 1] || uri;
240 }
241
242 #sendNotification(method: string, params: unknown): void {
243 // Access the client's transport to send raw JSON-RPC notification

Callers 2

addWorkspaceFolderMethod · 0.95
removeWorkspaceFolderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected