Skip to content

Add option --lazyConfiguredProjectsFromExternalProject to enable lazy load of configured projects referenced by external project - #26716

Merged
Sheetal Nandi (sheetalkamat) merged 4 commits into
masterfrom
lazyConfiguredProjectsFromExternalProject
Aug 28, 2018
Merged

Add option --lazyConfiguredProjectsFromExternalProject to enable lazy load of configured projects referenced by external project#26716
Sheetal Nandi (sheetalkamat) merged 4 commits into
masterfrom
lazyConfiguredProjectsFromExternalProject

Conversation

@sheetalkamat

Copy link
Copy Markdown
Member

Fixes #26696

… load of configured projects referenced by external project

Fixes #26696
@sheetalkamat
Sheetal Nandi (sheetalkamat) force-pushed the lazyConfiguredProjectsFromExternalProject branch from 1c7319b to 96e6140 Compare August 28, 2018 19:49
@amcasey

Andrew Casey (amcasey) commented Aug 28, 2018

Copy link
Copy Markdown
Member

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
Sheetal Nandi (sheetalkamat) force-pushed the lazyConfiguredProjectsFromExternalProject branch from 7b018ef to fc90b8f Compare August 28, 2018 21:41
@sheetalkamat

Copy link
Copy Markdown
Member Author

Andrew Casey (@amcasey) updated to user preferences

@amcasey Andrew Casey (amcasey) left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/server/editorServices.ts Outdated
@@ -1,3 +1,9 @@
namespace ts {

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Andy (Andrewkraft) (@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!

setTypeAcquisition(newTypeAcquisition: TypeAcquisition): void;
}
}
declare namespace ts {

Copy link
Copy Markdown
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
Sheetal Nandi (sheetalkamat) force-pushed the lazyConfiguredProjectsFromExternalProject branch from 24e43b4 to 03bb5d1 Compare August 28, 2018 22:53
@sheetalkamat

Copy link
Copy Markdown
Member Author

Ryan Cavanaugh (@RyanCavanaugh) Is port to release-3.0 branch needed?

@amcasey

Copy link
Copy Markdown
Member

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

@sheetalkamat

Copy link
Copy Markdown
Member Author

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

Oh right. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants