mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(editor): misaligned command prefixes (#6628)
In the client code, we were registering commands under the `oxc` prefix, but in our `package.json` we were advertising a `oxc_language_server` prefix.
This commit is contained in:
parent
25a49a5700
commit
d9159a2445
2 changed files with 10 additions and 9 deletions
|
|
@ -19,13 +19,14 @@ const languageClientId = 'oxc-vscode';
|
|||
const languageClientName = 'oxc';
|
||||
const outputChannelName = 'oxc_language_server';
|
||||
const traceOutputChannelName = 'oxc_language_server.trace';
|
||||
const commandPrefix = 'oxc';
|
||||
|
||||
const enum OxcCommands {
|
||||
RestartServer = 'oxc.restartServer',
|
||||
ApplyAllFixes = 'oxc.applyAllFixes',
|
||||
ShowOutputChannel = 'oxc.showOutputChannel',
|
||||
ShowTraceOutputChannel = 'oxc.showTraceOutputChannel',
|
||||
ToggleEnable = 'oxc.toggleEnable',
|
||||
RestartServer = `${commandPrefix}.restartServer`,
|
||||
ApplyAllFixes = `${commandPrefix}.applyAllFixes`,
|
||||
ShowOutputChannel = `${commandPrefix}.showOutputChannel`,
|
||||
ShowTraceOutputChannel = `${commandPrefix}.showTraceOutputChannel`,
|
||||
ToggleEnable = `${commandPrefix}.toggleEnable`,
|
||||
}
|
||||
|
||||
let client: LanguageClient;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
"type": "object",
|
||||
"title": "oxc",
|
||||
"properties": {
|
||||
"oxc_language_server.run": {
|
||||
"oxc.lint.run": {
|
||||
"scope": "resource",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
|
@ -74,12 +74,12 @@
|
|||
"default": "onType",
|
||||
"description": "Run the linter on save (onSave) or on type (onType)"
|
||||
},
|
||||
"oxc_language_server.enable": {
|
||||
"oxc.enable": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "enable oxc language server"
|
||||
},
|
||||
"oxc_language_server.trace.server": {
|
||||
"oxc.trace.server": {
|
||||
"type": "string",
|
||||
"scope": "window",
|
||||
"enum": [
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
"default": "off",
|
||||
"description": "Traces the communication between VS Code and the language server."
|
||||
},
|
||||
"oxc_language_server.configPath": {
|
||||
"oxc.configPath": {
|
||||
"type": "string",
|
||||
"scope": "window",
|
||||
"default": ".eslintrc",
|
||||
|
|
|
|||
Loading…
Reference in a new issue