Merge pull request #3088 from github/koesie10/locations-preserve-focus
Preserve focus on results viewer when showing location
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user