File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,10 @@ connection.onInitialize(async params => {
23
23
24
24
const options : VueInitializationOptions = params . initializationOptions ;
25
25
const hybridMode = options . vue ?. hybridMode ?? true ;
26
+ const vueFileExtensions : string [ ] = [ 'vue' ] ;
26
27
27
28
tsdk = loadTsdkByPath ( options . typescript . tsdk , params . locale ) ;
28
29
29
- const vueFileExtensions : string [ ] = [ 'vue' ] ;
30
-
31
30
if ( options . vue ?. additionalExtensions ) {
32
31
for ( const additionalExtension of options . vue . additionalExtensions ) {
33
32
vueFileExtensions . push ( additionalExtension ) ;
@@ -60,7 +59,7 @@ connection.onInitialize(async params => {
60
59
const commandLine = await parseCommandLine ( ) ;
61
60
const vueOptions = commandLine ?. vueOptions ?? resolveVueCompilerOptions ( { } ) ;
62
61
for ( const ext of vueFileExtensions ) {
63
- if ( vueOptions . extensions . includes ( `.${ ext } ` ) ) {
62
+ if ( ! vueOptions . extensions . includes ( `.${ ext } ` ) ) {
64
63
vueOptions . extensions . push ( `.${ ext } ` ) ;
65
64
}
66
65
}
You can’t perform that action at this time.
0 commit comments