File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
packages/typescript-plugin/lib Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ export function startNamedPipeServer(
4343 const request : Request = JSON . parse ( text ) ;
4444 const fileName = request . args [ 0 ] ;
4545 const project = getProject ( fileName ) ;
46- if ( project ) {
46+ if ( request . type === 'containsFile' ) {
47+ connection . write ( JSON . stringify ( ! ! project ) ) ;
48+ }
49+ else if ( project ) {
4750 const requestContext = {
4851 typescript : ts ,
4952 languageService : project . info . languageService ,
@@ -52,11 +55,7 @@ export function startNamedPipeServer(
5255 isTsPlugin : true ,
5356 getFileId : ( fileName : string ) => fileName ,
5457 } ;
55- if ( request . type === 'containsFile' ) {
56- const result = ! ! getProject ( fileName ) ;
57- connection . write ( JSON . stringify ( result ?? null ) ) ;
58- }
59- else if ( request . type === 'collectExtractProps' ) {
58+ if ( request . type === 'collectExtractProps' ) {
6059 const result = collectExtractProps . apply ( requestContext , request . args as any ) ;
6160 connection . write ( JSON . stringify ( result ?? null ) ) ;
6261 }
You can’t perform that action at this time.
0 commit comments