MCPcopy Create free account
hub / github.com/GCWing/BitFun / initialize

Method initialize

src/web-ui/src/tools/lsp/services/LspService.ts:26–39  ·  view source on GitHub ↗

Initialize the backend LSP system once.

()

Source from the content-addressed store, hash-verified

24
25 /** Initialize the backend LSP system once. */
26 async initialize(): Promise<void> {
27 if (this.initialized) {
28 return;
29 }
30
31 try {
32 const result = await measureAsync(() => invoke('lsp_initialize'));
33 this.initialized = true;
34 log.info('LSP system initialized', { durationMs: result.durationMs });
35 } catch (error) {
36 log.error('Failed to initialize LSP system', error);
37 throw error;
38 }
39 }
40
41 /** Open a workspace (supersedes the old setWorkspaceRoot flow). */
42 async openWorkspace(workspacePath: string): Promise<void> {

Callers 10

initializeBeforeRenderFunction · 0.45
initializeAfterRenderFunction · 0.45
initializeLspOnceFunction · 0.45
initializeWorkspaceMethod · 0.45
useLspPluginsFunction · 0.45
initFunction · 0.45
initializeMermaidMethod · 0.45
initializeFlowChatFunction · 0.45
main.tsxFile · 0.45

Calls 3

measureAsyncFunction · 0.90
infoMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected