File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ namespace ts {
726
726
// - The '--noLib' flag is used.
727
727
// - A 'no-default-lib' reference comment is encountered in
728
728
// processing the root files.
729
- if ( rootNames . length && ! skipDefaultLib ) {
729
+ if ( ! skipDefaultLib ) {
730
730
// If '--lib' is not specified, include default library file according to '--target'
731
731
// otherwise, using options specified in '--lib' instead of '--target' default library file
732
732
const defaultLibraryFileName = getDefaultLibraryFileName ( ) ;
Original file line number Diff line number Diff line change @@ -10521,7 +10521,12 @@ declare class TestLib {
10521
10521
assert.deepEqual(semanticDiagnostics, []);
10522
10522
});
10523
10523
const containerProject = service.configuredProjects.get(containerConfig.path)!;
10524
- checkProjectActualFiles(containerProject, [containerConfig.path]);
10524
+ checkProjectActualFiles(containerProject, [containerConfig.path, libFile.path]);
10525
+ const optionsDiagnostics = session.executeCommandSeq<protocol.CompilerOptionsDiagnosticsRequest>({
10526
+ command: protocol.CommandTypes.CompilerOptionsDiagnosticsFull,
10527
+ arguments: { projectFileName: containerProject.projectName }
10528
+ }).response;
10529
+ assert.deepEqual(optionsDiagnostics, []);
10525
10530
});
10526
10531
});
10527
10532
You can’t perform that action at this time.
0 commit comments