Skip to content

Commit cc7fb39

Browse files
authored
Merge pull request #488 from jcreedcmu/jcreed/query-text
Fix display of quick-query query text
2 parents 3e149e7 + d8266b7 commit cc7fb39

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extensions/ql-vscode/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Ensure added databases have zipped source locations for databases added as archives or downloaded from the internet.
88
- Fix bug where it is not possible to add databases starting with `db-*`.
99
- Change styling of pagination section of the results page.
10+
- Fix display of query text for stored quick queries.
1011

1112
## 1.3.0 - 22 June 2020
1213

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export class QueryHistoryManager {
417417
: singleItem.queryName + '.ql';
418418
const params = new URLSearchParams({
419419
isQuickEval: String(!!singleItem.query.quickEvalPosition),
420-
queryText: await this.getQueryText(singleItem),
420+
queryText: encodeURIComponent(await this.getQueryText(singleItem)),
421421
});
422422
const uri = vscode.Uri.parse(
423423
`codeql:${singleItem.query.queryID}-${queryName}?${params.toString()}`

0 commit comments

Comments
 (0)