(message: string)
| 415 | } |
| 416 | |
| 417 | showLoading(message: string) { |
| 418 | if (!this.panel) { |
| 419 | this.panel = vscode.window.createWebviewPanel( |
| 420 | 'codag', |
| 421 | 'LLM Architecture', |
| 422 | vscode.ViewColumn.Two, |
| 423 | { |
| 424 | enableScripts: true, |
| 425 | retainContextWhenHidden: true, |
| 426 | localResourceRoots: [ |
| 427 | vscode.Uri.joinPath(this.context.extensionUri, 'media'), |
| 428 | vscode.Uri.joinPath(this.context.extensionUri, 'out') |
| 429 | ] |
| 430 | } |
| 431 | ); |
| 432 | |
| 433 | this.panel.iconPath = this.getIconPath(); |
| 434 | |
| 435 | this.panel.onDidDispose(() => { |
| 436 | this.panel = undefined; |
| 437 | }); |
| 438 | |
| 439 | this.setupMessageHandlers(); |
| 440 | |
| 441 | // Reset ready state since HTML is replaced |
| 442 | this.resetWebviewState(); |
| 443 | this.panel.webview.html = this.getHtml({ nodes: [], edges: [], llms_detected: [], workflows: [] }); |
| 444 | |
| 445 | } else { |
| 446 | this.panel.reveal(); |
| 447 | } |
| 448 | |
| 449 | this.postMessage({ command: 'showLoading', text: message }); |
| 450 | } |
| 451 | |
| 452 | updateLoadingText(message: string, subtext?: string) { |
| 453 | this.postMessage({ command: 'updateLoadingText', text: message, subtext }); |
no test coverage detected