File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ namespace ts {
777
777
{
778
778
name : "maxNodeModuleJsDepth" ,
779
779
type : "number" ,
780
- // TODO: GH#27108 affectsModuleResolution: true,
780
+ affectsModuleResolution : true ,
781
781
category : Diagnostics . Advanced_Options ,
782
782
description : Diagnostics . The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files
783
783
} ,
Original file line number Diff line number Diff line change @@ -1228,11 +1228,10 @@ namespace ts.server {
1228
1228
1229
1229
setCompilerOptions ( options ?: CompilerOptions ) {
1230
1230
// Avoid manipulating the given options directly
1231
- const newOptions = options ? cloneCompilerOptions ( options ) : this . getCompilationSettings ( ) ;
1232
- if ( ! newOptions ) {
1231
+ if ( ! options && ! this . getCompilationSettings ( ) ) {
1233
1232
return ;
1234
1233
}
1235
-
1234
+ const newOptions = cloneCompilerOptions ( options || this . getCompilationSettings ( ) ) ;
1236
1235
if ( this . _isJsInferredProject && typeof newOptions . maxNodeModuleJsDepth !== "number" ) {
1237
1236
newOptions . maxNodeModuleJsDepth = 2 ;
1238
1237
}
You can’t perform that action at this time.
0 commit comments