Merge pull request #3088 from github/koesie10/locations-preserve-focus

Preserve focus on results viewer when showing location
This commit is contained in:
Koen Vlaswinkel
2023-11-24 15:04:27 +01:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
- 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)
- Remove support for CodeQL CLI versions older than 2.11.6. [#3087](https://github.com/github/vscode-codeql/pull/3087)
- Preserve focus on results viewer when showing a location in a file. [#3088](https://github.com/github/vscode-codeql/pull/3088)
## 1.10.0 - 16 November 2023

View File

@@ -128,6 +128,8 @@ export async function showLocation(location?: Location) {
// avoid preview mode so editor is sticky and will be added to navigation and search histories.
preview: false,
viewColumn: ViewColumn.One,
// Keep the focus on the results view so that the user can easily navigate to the next result.
preserveFocus: true,
});
const range = location.range;