Skip to content
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

fix(language-service): remove incompletely used parameter from `creat… #13278

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

chuckjaz
Copy link
Contributor

@chuckjaz chuckjaz commented Dec 6, 2016

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix

What is the current behavior? (You can also link to an open issue here)

createLanguageServiceFromTypescript() takes a typescript parameter that it doesn't completely use as some places it uses this parameter and in other places it uses the imported TypeScript.

What is the new behavior?

createLanguageServiceFromTypescript() no longer takes the typescript module as a parameter and will always use the imported version.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

Other information:

…eLanguageServiceFromTypescript()`

Fixes #13277

@chuckjaz chuckjaz added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 6, 2016
private serviceHost: TypeScriptServiceHost;
private service: LanguageService;
private host: ts.LanguageServiceHost;

static 'extension-kind' = 'language-service';

constructor(config: {
ts: typeof ts; host: ts.LanguageServiceHost; service: ts.LanguageService;
host: ts.LanguageServiceHost; service: ts.LanguageService;
Copy link
Contributor

Choose a reason for hiding this comment

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

should be "," instead of ";" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typescript accepts both here but I prefer using ; as it is more consistent.

@vicb vicb added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 6, 2016
@chuckjaz chuckjaz added the action: merge The PR is ready for merge by the caretaker label Dec 6, 2016
@alxhub alxhub merged commit 25c2141 into angular:master Dec 7, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language service factory takes a typescript parameter which is not used
4 participants