-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add option --lazyConfiguredProjectsFromExternalProject to enable lazy load of configured projects referenced by external project #26716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option --lazyConfiguredProjectsFromExternalProject to enable lazy load of configured projects referenced by external project #26716
Conversation
… load of configured projects referenced by external project Fixes #26696
1c7319b
to
96e6140
Compare
Sorry, I was unclear - I meant a programmatic switch (e.g. in Edit: Unless the server has to be restarted regardless? |
…f command line option
7b018ef
to
fc90b8f
Compare
@amcasey updated to user preferences |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm just confused about scoping rules in TS. Otherwise, it looks good.
src/server/editorServices.ts
Outdated
@@ -1,3 +1,9 @@ | |||
namespace ts { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? The one in protocol isn't visible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats because UserPreferences is moved to compiler and when building server it wont have lazyConfiguredProjectsFromExternalProject field. We add that only when building server. (UserPreferences is in ts namespace as appose to ts.server)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it a bit to use protocol.UserPreferences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Andy-MS is more likely than I am to know what conventions we follow in this regard, but I find the new version clearer. Thanks!
@@ -8200,6 +8201,11 @@ declare namespace ts.server { | |||
setTypeAcquisition(newTypeAcquisition: TypeAcquisition): void; | |||
} | |||
} | |||
declare namespace ts { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I definitely feel like I'm missing something. What is this?
24e43b4
to
03bb5d1
Compare
@RyanCavanaugh Is port to release-3.0 branch needed? |
@sheetalkamat The original change (i.e. making loading lazy) wasn't ported to 3.0, was it? |
Oh right. Thanks |
Fixes #26696