File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
packages/typescript-plugin/lib Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 1
- import type { Language } from '@vue/language-core' ;
1
+ import { FileMap , Language } from '@vue/language-core' ;
2
2
import * as fs from 'node:fs' ;
3
3
import * as net from 'node:net' ;
4
4
import type * as ts from 'typescript' ;
@@ -68,20 +68,14 @@ export async function startNamedPipeServer(
68
68
getFileId : ( fileName : string ) => fileName ,
69
69
} ;
70
70
const dataChunks : Buffer [ ] = [ ] ;
71
- const currentData = new Map <
72
- string ,
73
- [
74
- componentNames : string [ ] ,
75
- Record <
76
- string ,
77
- {
78
- name : string ;
79
- required ?: true ;
80
- commentMarkdown ?: string ;
81
- } [ ]
82
- > ,
83
- ]
84
- > ( ) ;
71
+ const currentData = new FileMap < [
72
+ componentNames : string [ ] ,
73
+ Record < string , {
74
+ name : string ;
75
+ required ?: true ;
76
+ commentMarkdown ?: string ;
77
+ } [ ] > ,
78
+ ] > ( false ) ;
85
79
const allConnections = new Set < net . Socket > ( ) ;
86
80
const pendingRequests = new Set < number > ( ) ;
87
81
const server = net . createServer ( connection => {
Original file line number Diff line number Diff line change
1
+ import { FileMap } from '@vue/language-core' ;
1
2
import { camelize , capitalize } from '@vue/shared' ;
2
3
import * as fs from 'node:fs' ;
3
4
import * as net from 'node:net' ;
@@ -30,14 +31,13 @@ class NamedPipeServer {
30
31
connecting = false ;
31
32
projectInfo ?: ProjectInfo ;
32
33
containsFileCache = new Map < string , Promise < boolean | undefined | null > > ( ) ;
33
- componentNamesAndProps = new Map <
34
- string ,
34
+ componentNamesAndProps = new FileMap <
35
35
Record < string , null | {
36
36
name : string ;
37
37
required ?: true ;
38
38
commentMarkdown ?: string ;
39
39
} [ ] >
40
- > ( ) ;
40
+ > ( false ) ;
41
41
42
42
constructor ( kind : ts . server . ProjectKind , id : number ) {
43
43
this . path = getServerPath ( kind , id ) ;
You can’t perform that action at this time.
0 commit comments