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

Method displayFile

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

Source from the content-addressed store, hash-verified

219 }
220
221 async displayFile(uri: string): Promise<EditorView | null> {
222 if (typeof this.options.displayFile === "function") {
223 try {
224 return await this.options.displayFile(uri);
225 } catch (error) {
226 this.#log("error", "Workspace failed to display file", error);
227 console.error("[LSP:Workspace] Failed to display file", error);
228 }
229 }
230 return null;
231 }
232
233 // ========================================================================
234 // Workspace Folders Support

Callers 3

applyChangesToFileFunction · 0.80
applyChangesToFileFunction · 0.80

Calls 2

#logMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected