-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open editor containing query location in non-preview mode #630
Open editor containing query location in non-preview mode #630
Conversation
1f5334d
to
cb30009
Compare
cb30009
to
5a3142a
Compare
extensions/ql-vscode/CHANGELOG.md
Outdated
@@ -21,6 +22,7 @@ | |||
- Add a `View DIL` command on query history items. This opens a text editor containing the Datalog Intermediary Language representation of the compiled query. | |||
- Remove feature flag for the AST Viewer. For more information on how to use the AST Viewer, [see the documentation](https://help.semmle.com/codeql/codeql-for-vscode/procedures/exploring-the-structure-of-your-source-code.html). | |||
- The `codeQL.runningTests.numberOfThreads` setting is now used correctly when running tests. | |||
- Add the `codeQL.ui.openInPreviewEditor` config option. This option allows users to open query results in non-preview editors (by un-checking this option). Doing so will make navigation between results files easier, but may also contribute to a proliferation of open editors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer necessary now you're making it unconditional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Let me delete
extensions/ql-vscode/package.json
Outdated
@@ -110,6 +110,11 @@ | |||
"type": "object", | |||
"title": "CodeQL", | |||
"properties": { | |||
"codeQL.ui.openInPreviewEditor": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, no longer necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
: await Window.showTextDocument(doc, ViewColumn.One); | ||
: await Window.showTextDocument( | ||
doc, { | ||
preview: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preview: false
? Also maybe comment here about why.
e79d68e
to
b77b676
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog conflicts because of your speed of releases :) Otherwise looks good.
b77b676
to
f82a2ce
Compare
Could you provide this with an option? I think this option is really useful for me. |
Adds a new config option to control this behavior. If this behavior isgenerally desirable, we will remove the option and avoid using preview
editors for all users.
Not going with a config setting as I don't feel like we should be cluttering up the settings page.
This change partially mitigates the limitations with how vscode handles editors backed by custom uri providers.
See #500 (comment) for an explanation of what this does and why we should do it.
Checklist
@github/docs-content-dsp
has been cc'd in all issues for UI or other user-facing changes made by this pull request.