diff --git a/.eslintrc.json b/.eslintrc.json index 2c459c6e..9e265bf1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,7 @@ "eqeqeq": "warn", "no-throw-literal": "warn", "semi": "off", - "no-extra-semi": "warn" + "no-extra-semi": "warn", + "no-case-declarations": "warn" } } diff --git a/src/CfgEditor/CfgEditorPanel.ts b/src/CfgEditor/CfgEditorPanel.ts index 1b2d7e53..132cd125 100644 --- a/src/CfgEditor/CfgEditorPanel.ts +++ b/src/CfgEditor/CfgEditorPanel.ts @@ -142,7 +142,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider { vscode.workspace.applyEdit(edit); } break; - case 'getPathByDialog': + case 'getPathByDialog': { const dialogOptions = { canSelectMany: false, canSelectFolders: e.isFolder, @@ -158,6 +158,7 @@ export class CfgEditorPanel implements vscode.CustomTextEditorProvider { } }); break; + } default: break; }