File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ namespace ts.projectSystem {
122
122
return JSON . stringify ( { dependencies : dependencies } ) ;
123
123
}
124
124
125
- export function getExecutingFilePathFromLibFile ( _libFilePath : string ) : string {
125
+ export function getExecutingFilePathFromLibFile ( ) : string {
126
126
return combinePaths ( getDirectoryPath ( libFile . path ) , "tsc.js" ) ;
127
127
}
128
128
@@ -154,16 +154,13 @@ namespace ts.projectSystem {
154
154
currentDirectory ?: string ;
155
155
}
156
156
157
- export function createServerHost ( fileOrFolderList : FileOrFolder [ ] ,
158
- params ?: TestServerHostCreationParameters ,
159
- libFilePath : string = libFile . path ) : TestServerHost {
160
-
157
+ export function createServerHost ( fileOrFolderList : FileOrFolder [ ] , params ?: TestServerHostCreationParameters ) : TestServerHost {
161
158
if ( ! params ) {
162
159
params = { } ;
163
160
}
164
161
const host = new TestServerHost (
165
162
params . useCaseSensitiveFileNames !== undefined ? params . useCaseSensitiveFileNames : false ,
166
- params . executingFilePath || getExecutingFilePathFromLibFile ( libFilePath ) ,
163
+ params . executingFilePath || getExecutingFilePathFromLibFile ( ) ,
167
164
params . currentDirectory || "/" ,
168
165
fileOrFolderList ) ;
169
166
host . createFileOrFolder ( safeList , /*createParentDirectory*/ true ) ;
You can’t perform that action at this time.
0 commit comments