You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I select a database in VS Code and open a source file (C language), go to the CodeQL tab and click "Show AST" I get
Cannot view the AST. Please select a valid source file inside a CodeQL database. (codeQL.viewAst) Error: Cannot view the AST. Please select a valid source file inside a CodeQL database.
Version
The CodeQL and VS Code version in which the bug occurs.
Navigate to a source file using the vscode file explorer
Click on the codeql extension button on the left vertical bar
Click "Show AST"
Error
Expected behavior
Thingy works, and shows the AST under the editor cursor position.
Additional context
Note that if I do right-click on the source and "Show AST" (instead of clicking the button in the codeql extension tab), it does work properly.
Thank you for the report. We are swamped with work at this point, so I cannot promise any specific timeline in terms of when we will be able to look into it further.
Activity
cklin commentedon Mar 30, 2026
Thank you for the report. We are swamped with work at this point, so I cannot promise any specific timeline in terms of when we will be able to look into it further.