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

Method constructor

src/cm/lsp/workspace.ts:47–57  ·  view source on GitHub ↗
(
		client: ConstructorParameters<typeof Workspace>[0],
		options: WorkspaceOptions = {},
	)

Source from the content-addressed store, hash-verified

45 #workspaceFolders: Set<string>;
46
47 constructor(
48 client: ConstructorParameters<typeof Workspace>[0],
49 options: WorkspaceOptions = {},
50 ) {
51 super(client);
52 this.files = [];
53 this.#fileMap = new Map();
54 this.#versions = Object.create(null) as Record<string, number>;
55 this.#workspaceFolders = new Set();
56 this.options = options;
57 }
58
59 #log(level: LspLogLevel, message: string, details?: unknown): void {
60 addLspLogFor(this.client, level, message, details);

Callers

nothing calls this directly

Calls 1

createMethod · 0.65

Tested by

no test coverage detected