File tree 2 files changed +3
-3
lines changed
tests/baselines/reference/api
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ namespace ts.server {
403
403
/* @internal */
404
404
pendingEnsureProjectForOpenFiles : boolean ;
405
405
406
- readonly currentDirectory : string ;
406
+ readonly currentDirectory : NormalizedPath ;
407
407
readonly toCanonicalFileName : ( f : string ) => string ;
408
408
409
409
public readonly host : ServerHost ;
@@ -450,7 +450,7 @@ namespace ts.server {
450
450
if ( this . host . realpath ) {
451
451
this . realpathToScriptInfos = createMultiMap ( ) ;
452
452
}
453
- this . currentDirectory = this . host . getCurrentDirectory ( ) ;
453
+ this . currentDirectory = toNormalizedPath ( this . host . getCurrentDirectory ( ) ) ;
454
454
this . toCanonicalFileName = createGetCanonicalFileName ( this . host . useCaseSensitiveFileNames ) ;
455
455
this . globalCacheLocationDirectoryPath = this . typingsInstaller . globalTypingsCacheLocation &&
456
456
ensureTrailingDirectorySeparator ( this . toPath ( this . typingsInstaller . globalTypingsCacheLocation ) ) ;
Original file line number Diff line number Diff line change @@ -8176,7 +8176,7 @@ declare namespace ts.server {
8176
8176
private safelist ;
8177
8177
private legacySafelist ;
8178
8178
private pendingProjectUpdates ;
8179
- readonly currentDirectory : string ;
8179
+ readonly currentDirectory : NormalizedPath ;
8180
8180
readonly toCanonicalFileName : ( f : string ) => string ;
8181
8181
readonly host : ServerHost ;
8182
8182
readonly logger : Logger ;
You can’t perform that action at this time.
0 commit comments