Skip to content

Commit 85d7b9b

Browse files
authored
Merge pull request #3088 from github/koesie10/locations-preserve-focus
Preserve focus on results viewer when showing location
2 parents c3425b5 + 6324a19 commit 85d7b9b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Add a prompt to the "Quick query" command to encourage users in single-folder workspaces to use "Create query" instead. [#3082](https://github.com/github/vscode-codeql/pull/3082)
66
- Remove support for CodeQL CLI versions older than 2.11.6. [#3087](https://github.com/github/vscode-codeql/pull/3087)
7+
- Preserve focus on results viewer when showing a location in a file. [#3088](https://github.com/github/vscode-codeql/pull/3088)
78

89
## 1.10.0 - 16 November 2023
910

extensions/ql-vscode/src/databases/local-databases/locations.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export async function showLocation(location?: Location) {
128128
// avoid preview mode so editor is sticky and will be added to navigation and search histories.
129129
preview: false,
130130
viewColumn: ViewColumn.One,
131+
// Keep the focus on the results view so that the user can easily navigate to the next result.
132+
preserveFocus: true,
131133
});
132134

133135
const range = location.range;

0 commit comments

Comments
 (0)