File tree 1 file changed +3
-4
lines changed
extensions/vscode/src/features
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ export async function register(context: vscode.ExtensionContext, client: BaseLan
94
94
message : string ;
95
95
} [ ] = [ ] ;
96
96
97
- // check vue version < 2.7 but @vue/runtime-dom missing
98
97
if ( vueMod && semver . lt ( vueMod . json . version , '2.7.0' ) && ! domMod ) {
98
+ // check vue version < 2.7 but @vue/runtime-dom missing
99
99
problems . push ( {
100
100
title : '`@vue/runtime-dom` missing for Vue 2' ,
101
101
message : [
@@ -105,9 +105,8 @@ export async function register(context: vscode.ExtensionContext, client: BaseLan
105
105
] . join ( '\n' ) ,
106
106
} ) ;
107
107
}
108
-
109
- // check vue version >= 2.7 and < 3 but installed @vue/runtime-dom
110
- if ( vueMod && semver . gte ( vueMod . json . version , '2.7.0' ) && semver . lt ( vueMod . json . version , '3.0.0' ) && domMod ) {
108
+ else if ( vueMod && semver . gte ( vueMod . json . version , '2.7.0' ) && semver . lt ( vueMod . json . version , '3.0.0' ) && domMod ) {
109
+ // check vue version >= 2.7 and < 3 but installed @vue/runtime-dom
111
110
problems . push ( {
112
111
title : 'Unnecessary `@vue/runtime-dom`' ,
113
112
message : [
You can’t perform that action at this time.
0 commit comments