This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1245,7 +1245,13 @@ export class TypeScriptService {
12451245
12461246 return this . projectManager . ensureOwnFiles ( span )
12471247 . concat ( Observable . defer ( ( ) => {
1248- const configuration = this . projectManager . getConfiguration ( fileTextChanges [ 0 ] . fileName )
1248+ // Configuration lookup uses Windows paths, FileTextChanges uses unix paths. Convert to backslashes.
1249+ const unixFilePath = fileTextChanges [ 0 ] . fileName
1250+ const firstChangedFile = / ^ [ a - z ] : \/ / i. test ( unixFilePath ) ?
1251+ unixFilePath . replace ( / \/ / g, '\\' ) :
1252+ unixFilePath
1253+
1254+ const configuration = this . projectManager . getConfiguration ( firstChangedFile )
12491255 configuration . ensureBasicFiles ( span )
12501256
12511257 const changes : { [ uri : string ] : TextEdit [ ] } = { }
You can’t perform that action at this time.
0 commit comments