-
-
Notifications
You must be signed in to change notification settings - Fork 724
feat(editors): toggle client after vscode config changing #16162
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
base: main
Are you sure you want to change the base?
feat(editors): toggle client after vscode config changing #16162
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
bb7d187 to
e0a08fe
Compare
|
Oh, the test failed, but I don't know if it is related to this change because the most errors are about the vscode commends and I didn't change them |
|
@liangmiQwQ you are toggling the client even if another configuration is effected. You need to check it the key is effected, here an example with a lsp configuration: oxc/editors/vscode/client/WorkspaceConfig.ts Lines 154 to 157 in 9c10d86
|
e0a08fe to
c19a1df
Compare
|
Updated! Thanks for the guidance. but I'm not sure if it changes its behavior because As for the test, I tried locally on the main branch, and it seems to be failed as well, I guess there are something different between the test snapshot and the oxfmt latest output, anyway this is outside the scope of this PR. |
| const firstDiagnostics = await getDiagnostics('debugger.js'); | ||
| strictEqual(firstDiagnostics.length, 1); | ||
|
|
||
| await workspace.getConfiguration('oxc').update('enable', false); |
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.
You need to reset this configuration. Try the teardown function at the top, or at the end of this test
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.
Updated! Tysm!
ad6be59 to
df8cf2f
Compare
Update the linter client enabling status after config changing