File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/typescript-plugin/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function startNamedPipeServer(
44
44
const text = data . toString ( ) ;
45
45
const request : Request = JSON . parse ( text ) ;
46
46
const fileName = request . args [ 0 ] ;
47
- const project = getProject ( fileName ) ;
47
+ const project = getProject ( ts . server . toNormalizedPath ( fileName ) ) ;
48
48
if ( request . type === 'projectInfoForFile' ) {
49
49
connection . write (
50
50
JSON . stringify (
@@ -154,9 +154,9 @@ export const projects = new Map<ts.server.Project, {
154
154
vueOptions : VueCompilerOptions ;
155
155
} > ( ) ;
156
156
157
- function getProject ( fileName : string ) {
157
+ function getProject ( filename : ts . server . NormalizedPath ) {
158
158
for ( const [ project , data ] of projects ) {
159
- if ( project . containsFile ( fileName as ts . server . NormalizedPath ) ) {
159
+ if ( project . containsFile ( filename ) ) {
160
160
return data ;
161
161
}
162
162
}
You can’t perform that action at this time.
0 commit comments