-
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
Use the workspace trust feature #861
Conversation
This looks great! Three extra things:
|
The upstream PR has been merged and the new version of test explorer has been released. Let's ship this! |
We should probably still wait until workspace trust is enabled by default in VS Code, since we've changed the CLI executable setting back to "window" scope. (i.e. anyone who hasn't explicitly set Points 2 and 3 in your previous comment (#861 (comment)) still hold, I think! |
Nice! Do we know what version of VS Code will ship with workspace trust? |
I've been keeping an eye on microsoft/vscode#120251, but haven't seen anything about an expected release. (Maybe I'm looking in the wrong places though...) I suppose we could revert the "machine -> window" change and ship the workspace trust implementation itself at any time? That would at least make the extension work for users who have enabled workspace trust and are in an untrusted workspace, without changing the behaviour for anyone else. |
Yes. Good point. There is a block on the package.json and we should update this to the version where workspace trust is going to be released. This will ensure that users on older versions on vscode won't accidentally get the new configuration behaviour. "engines": {
"vscode": "^1.43.0"
}, |
Running qtests in untrusted workspaces is also unsafe at the moment and hence also needs to be disabled. |
partial cherry-pick from `qc-development` branch
This version of VS Code has workspace trust enabled by default
6acce22
to
85a1f66
Compare
I've added some more commits to update dependencies, since workspace trust is now fully enabled (v1.57.0). I updated to 1.48.0 separately first, cherry-picked from #874 (which will hopefully minimise conflicts with the Re:
I think that's what line 30 covers: vscode-codeql/extensions/ql-vscode/package.json Lines 28 to 31 in 85a1f66
(Unless we need to disable qltests completely? I'm not sure how to do that.) |
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.
Looks good. Just some updates for the changelog.
Will fix #849 and will also (indirectly) fix #509.
Uses the syntax from microsoft/vscode#120251 (comment) to let the CodeQL extension work with workspace trust. For users who have enabled the workspace trust feature:
Note: Currently, you can't use the CodeQL extension at all in untrusted workspaces. This is because it depends on the Test Explorer, which currently doesn't work in untrusted workspaces. PR: hbenl/vscode-test-explorer#204.Fixed!Checklist
vscode-codeql/extensions/ql-vscode/package.json
Lines 15 to 17 in 72d57ee
@github/docs-content-codeql
has been cc'd in all issues for UI or other user-facing changes made by this pull request.