MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / showLoading

Method showLoading

frontend/src/webview.ts:417–450  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

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 });

Callers 5

activateFunction · 0.95
analyzeSelectedFilesFunction · 0.80
analyzeWorkspaceFunction · 0.80
scheduleFileAnalysisFunction · 0.80

Calls 5

getIconPathMethod · 0.95
setupMessageHandlersMethod · 0.95
resetWebviewStateMethod · 0.95
getHtmlMethod · 0.95
postMessageMethod · 0.95

Tested by

no test coverage detected