Skip to content

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

Merged
merged 4 commits into from
Aug 28, 2018

Conversation

sheetalkamat
Copy link
Member

Fixes #26696

… load of configured projects referenced by external project

Fixes #26696
@sheetalkamat sheetalkamat force-pushed the lazyConfiguredProjectsFromExternalProject branch from 1c7319b to 96e6140 Compare August 28, 2018 19:49
@amcasey
Copy link
Member

amcasey commented Aug 28, 2018

Sorry, I was unclear - I meant a programmatic switch (e.g. in UserPreferences), not a command-line switch.

Edit: Unless the server has to be restarted regardless?

@sheetalkamat sheetalkamat force-pushed the lazyConfiguredProjectsFromExternalProject branch from 7b018ef to fc90b8f Compare August 28, 2018 21:41
@sheetalkamat
Copy link
Member Author

@amcasey updated to user preferences

Copy link
Member

@amcasey amcasey left a 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.

@@ -1,3 +1,9 @@
namespace ts {
Copy link
Member

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?

Copy link
Member Author

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)

Copy link
Member Author

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

Copy link
Member

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 {
Copy link
Member

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?

@sheetalkamat sheetalkamat force-pushed the lazyConfiguredProjectsFromExternalProject branch from 24e43b4 to 03bb5d1 Compare August 28, 2018 22:53
@sheetalkamat
Copy link
Member Author

@RyanCavanaugh Is port to release-3.0 branch needed?

@amcasey
Copy link
Member

amcasey commented Aug 28, 2018

@sheetalkamat The original change (i.e. making loading lazy) wasn't ported to 3.0, was it?

@sheetalkamat
Copy link
Member Author

@sheetalkamat The original change (i.e. making loading lazy) wasn't ported to 3.0, was it?

Oh right. Thanks

@sheetalkamat sheetalkamat merged commit 199d496 into master Aug 28, 2018
@sheetalkamat sheetalkamat deleted the lazyConfiguredProjectsFromExternalProject branch August 28, 2018 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants