[Lldb-commits] [lldb] 6d43551 - [lldb-dap] Fix typescript issue in updated typescript code. (#156117)

via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 29 15:38:40 PDT 2025


Author: cmtice
Date: 2025-08-29T15:38:36-07:00
New Revision: 6d4355126be0fafa3e735ae6be193b3af127a40c

URL: https://github.com/llvm/llvm-project/commit/6d4355126be0fafa3e735ae6be193b3af127a40c
DIFF: https://github.com/llvm/llvm-project/commit/6d4355126be0fafa3e735ae6be193b3af127a40c.diff

LOG: [lldb-dap] Fix typescript issue in updated typescript code. (#156117)

After PR 155021 landed, some typescript 'promises' in async functions
were not 'await'ed, which caused us some build failures. This fixes that
by adding 'await' in the appropriate places.

Added: 
    

Modified: 
    lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts

Removed: 
    


################################################################################
diff  --git a/lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts b/lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts
index 84b9387ffe49f..951a5971e0bca 100644
--- a/lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts
+++ b/lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts
@@ -61,18 +61,18 @@ export class SymbolsProvider extends DisposableContext {
       return;
     }
 
-    this.showSymbolsForModule(session, selectedModule.module);
+    await this.showSymbolsForModule(session, selectedModule.module);
   }
 
   private async showSymbolsForModule(session: vscode.DebugSession, module: DebugProtocol.Module) {
     try {
       const symbols = await this.getSymbolsForModule(session, module.id.toString());
-      this.showSymbolsInNewTab(module.name.toString(), symbols);
+      await this.showSymbolsInNewTab(module.name.toString(), symbols);
     } catch (error) {
       if (error instanceof Error) {
-        vscode.window.showErrorMessage("Failed to retrieve symbols: " + error.message);
+        await vscode.window.showErrorMessage("Failed to retrieve symbols: " + error.message);
       } else {
-        vscode.window.showErrorMessage("Failed to retrieve symbols due to an unknown error.");
+        await vscode.window.showErrorMessage("Failed to retrieve symbols due to an unknown error.");
       }
       
       return;
@@ -106,7 +106,7 @@ export class SymbolsProvider extends DisposableContext {
     const symbolsTableScriptPath = panel.webview.asWebviewUri(vscode.Uri.joinPath(this.getExtensionResourcePath(), "symbols-table-view.js"));
 
     panel.webview.html = getSymbolsTableHTMLContent(tabulatorJsPath, tabulatorCssPath, symbolsTableScriptPath);
-    panel.webview.postMessage({ command: "updateSymbols", symbols: symbols });
+    await panel.webview.postMessage({ command: "updateSymbols", symbols: symbols });
   }
 
   private getExtensionResourcePath(): vscode.Uri {


        


More information about the lldb-commits mailing list