Skip to content

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

Merged
alxhub merged 1 commit intoangular:masterfrom
chuckjaz:issue13277
Dec 7, 2016
Merged

fix(language-service): remove incompletely used parameter from `creat…#13278
alxhub merged 1 commit intoangular:masterfrom
chuckjaz:issue13277

Conversation

@chuckjaz
Copy link
Copy Markdown
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

constructor(config: {
ts: typeof ts; host: ts.LanguageServiceHost; service: ts.LanguageService;
host: ts.LanguageServiceHost; service: ts.LanguageService;
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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