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 => {
2323
2424 const options : VueInitializationOptions = params . initializationOptions ;
2525 const hybridMode = options . vue ?. hybridMode ?? true ;
26+ const vueFileExtensions : string [ ] = [ 'vue' ] ;
2627
2728 tsdk = loadTsdkByPath ( options . typescript . tsdk , params . locale ) ;
2829
29- const vueFileExtensions : string [ ] = [ 'vue' ] ;
30-
3130 if ( options . vue ?. additionalExtensions ) {
3231 for ( const additionalExtension of options . vue . additionalExtensions ) {
3332 vueFileExtensions . push ( additionalExtension ) ;
@@ -60,7 +59,7 @@ connection.onInitialize(async params => {
6059 const commandLine = await parseCommandLine ( ) ;
6160 const vueOptions = commandLine ?. vueOptions ?? resolveVueCompilerOptions ( { } ) ;
6261 for ( const ext of vueFileExtensions ) {
63- if ( vueOptions . extensions . includes ( `.${ ext } ` ) ) {
62+ if ( ! vueOptions . extensions . includes ( `.${ ext } ` ) ) {
6463 vueOptions . extensions . push ( `.${ ext } ` ) ;
6564 }
6665 }
You can’t perform that action at this time.
0 commit comments