-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Support TypeScript plugin extensibility model for Language Service features #13716
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
Conversation
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.
Please squash changes into one or two changes that describe the change and make logical sense.
Please change the commit messages to conform to https://github.com/angular/angular/blob/master/CONTRIBUTING.md (e.g. refactor(compiler): check invalid parameters, feat(language-service): support TypeScript 2.2 plugin model.)
Please fix the tslint error reported in CI.
Consider converting the tests in ts-plugin.spec.ts to using the new plugin.
Consider removing the old plugin.
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.
Why throw here? Is this left-over debugging code?
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.
Removed
|
@chuckjaz thanks for review - pushed up a fresh commit |
chuckjaz
left a comment
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.
Overall looks good. However we are particular about the commit message slugs because we use an automated process to add the into the change log.
Please change your commit message to "feat(language-service): support TS2.2 plugin model" (note the lower case in "support").
|
Done |
|
Landed as 99aa49a |
|
Do we agree it's landed in 4.0.0-beta.3 but still not usable, as we're waiting for microsoft/TypeScript#12231, even with last typescript@next ? Or is there a way to already test that (seems strange that the PR has been merged without testing) ? |
|
I agree it is a bit strange but one of them had to be first. This code replaces previous plug-in specific code that was based on a previous TypeScript plug-in proposal. The TypeScript plug-in has unit tests and the |
|
Thanks (it wasn't to criticize, just to check I didn't miss something, because it's a long awaited feature that will help people a lot in my courses) |
|
microsoft/TypeScript#12231 has been merged ! Does this mean we can finally use |
|
This should work in nightly but I haven't added CI tests yet to verify that it continues to work with out latest builds. |
|
For info, I tried with yesterday and today nightly, and last stable version of |
|
I've got some sample / documentation repos up you can try. https://github.com/RyanCavanaugh/angular2-seed (Note: about to head out on vacation for 2 weeks with no internet access, so... hopefully you can get them to work!) |
|
@RyanCavanaugh is there anything specific except |
|
@cyrilletuzi you'll also need the VS Code workspace settings to enable loading the local version of the language service |
|
Problem was the version of |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
No language service for the new TypeScript plugin model exists
What is the new behavior?
A language service for the new TypeScript plugin model exists
Does this PR introduce a breaking change? (check one with "x")
Other information:
Commits in this PR:
When the corresponding PR microsoft/TypeScript#12231 goes in, the following workflow will be enabled:
angular/quickstart"plugins": [{ "name": "@angular/language-service" }, }]totsconfig.jsonnpm install --save-dev @angular/language-service