Initialize the backend LSP system once.
()
| 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> { |
no test coverage detected