File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -3183,9 +3183,9 @@ module ts {
3183
3183
var referencedFile = resolveScriptReference ( root , fileReference ) ;
3184
3184
3185
3185
// All the references that are not going to be part of same file
3186
- if ( ( referencedFile . flags & NodeFlags . DeclarationFile ) || // This is a declare file reference
3186
+ if ( referencedFile && ( ( referencedFile . flags & NodeFlags . DeclarationFile ) || // This is a declare file reference
3187
3187
shouldEmitToOwnFile ( referencedFile , compilerOptions ) || // This is referenced file is emitting its own js file
3188
- ! addedGlobalFileReference ) { // Or the global out file corresponding to this reference was not added
3188
+ ! addedGlobalFileReference ) ) { // Or the global out file corresponding to this reference was not added
3189
3189
3190
3190
writeReferencePath ( referencedFile ) ;
3191
3191
if ( ! isExternalModuleOrDeclarationFile ( referencedFile ) ) {
Original file line number Diff line number Diff line change @@ -328,12 +328,6 @@ module ts {
328
328
}
329
329
var options = compilationSettingsToCompilerOptions ( < CompilerOptions > JSON . parse ( < any > settingsJson ) ) ;
330
330
331
- /// TODO: this should be pushed into VS.
332
- /// We can not ask the LS instance to resolve, as this will lead to asking the host about files it does not know about,
333
- /// something it is not designed to handle. for now make sure we never get a "noresolve == false".
334
- /// This value should not matter, as the host runs resolution logic independently
335
- options . noResolve = true ;
336
-
337
331
return options ;
338
332
}
339
333
You can’t perform that action at this time.
0 commit comments