Skip to content

Commit

Permalink
fix(editor): misaligned command prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Oct 16, 2024
1 parent 9f555d7 commit eab6fa7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions editors/vscode/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"type": "object",
"title": "oxc",
"properties": {
"oxc_language_server.run": {
"oxc.lint.run": {
"scope": "resource",
"type": "string",
"enum": [
Expand All @@ -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": [
Expand All @@ -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",
Expand Down

0 comments on commit eab6fa7

Please sign in to comment.