Skip to content

Commit 986749b

Browse files
committed
Open query text as a .ql file
This fixes a minor bug (introduced in https://github.com/github/vscode-codeql/pull/1115/files#diff-cf43a74569f5e6eea483a9178f5de8fc372f8ca652017d3f1451dd2640876874L603) where we accidentally removed the `.ql` file extension. I've hard-coded it here, and tested it works for the local, remote, and variant-analysis cases.
1 parent 9c2821a commit 986749b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/query-history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ export class QueryHistoryManager extends DisposableObject {
10731073
const queryId = getQueryHistoryItemId(finalSingleItem);
10741074

10751075
const uri = Uri.parse(
1076-
`codeql:${queryId}?${params.toString()}`, true
1076+
`codeql:${queryId}.ql?${params.toString()}`, true
10771077
);
10781078
const doc = await workspace.openTextDocument(uri);
10791079
await window.showTextDocument(doc, { preview: false });

0 commit comments

Comments
 (0)