Skip to content

Commit

Permalink
feat: remove true option for volar.takeOverMode.enabled
Browse files Browse the repository at this point in the history
close #1622
  • Loading branch information
johnsoncodehk committed Jul 22, 2022
1 parent 21ebed0 commit 26c5291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions extensions/vscode-vue-language-features/package.json
Expand Up @@ -355,12 +355,10 @@
],
"enum": [
"auto",
true,
false
],
"enumDescriptions": [
"Auto enable take over mode when built-in TS extension disabled.",
"Alway enable take over mode.",
"Never enable take over mode."
],
"default": "auto",
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode-vue-language-features/src/common.ts
Expand Up @@ -203,11 +203,11 @@ export function deactivate(): Thenable<any> | undefined {
}

export function takeOverModeEnabled() {
const status = vscode.workspace.getConfiguration('volar').get<boolean | 'auto'>('takeOverMode.enabled');
const status = vscode.workspace.getConfiguration('volar').get<false | 'auto'>('takeOverMode.enabled');
if (status === 'auto') {
return !vscode.extensions.getExtension('vscode.typescript-language-features');
}
return status;
return false;
}

function enabledDocumentFeaturesInHtml() {
Expand Down

0 comments on commit 26c5291

Please sign in to comment.