Skip to content

Commit

Permalink
fix: make takeOverMode.enabled: true same behavior with 'auto'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 23, 2022
1 parent 1b10c13 commit cfaf700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/vscode-vue-language-features/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export function deactivate(): Thenable<any> | undefined {

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

0 comments on commit cfaf700

Please sign in to comment.