Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add refreshDiagnostics() method to Project#23824

Merged
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
plugin_projectServicemicrosoft/TypeScript:plugin_projectServiceCopy head branch name to clipboard
May 7, 2018
Merged

Add refreshDiagnostics() method to Project#23824
2 commits merged into
mastermicrosoft/TypeScript:masterfrom
plugin_projectServicemicrosoft/TypeScript:plugin_projectServiceCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented May 2, 2018

Copy link
Copy Markdown

Fixes #15914 and #15915

Using this, a plugin should be able to call sendProjectsUpdatedInBackgroundEvent on the ProjectService when it notices a config file has changed. Then we should request diagnostics again.
(Note: this includes having the plugin watch tsconfig.json if it needs to, instead of having the server notify the plugin for that.)
CC @egamma

@ghost ghost requested review from mhegazy and sheetalkamat May 2, 2018 18:02

@sheetalkamat sheetalkamat 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 do not think we should be exposing ProjectService here. The change in tsconfig file is project scoped not whole service dependent. The sendProjectsUpdatedInBackgroundEvent is event to session to inform about the changes in various projects and it shouldnt be used for this purpose.

@ghost

ghost commented May 2, 2018

Copy link
Copy Markdown
Author

Maybe we could add a method on project for use by plugins, that would cause diagnostics to be re-requested on the project?

@ghost ghost force-pushed the plugin_projectService branch from 387b854 to 4614719 Compare May 2, 2018 22:30
@ghost

ghost commented May 7, 2018

Copy link
Copy Markdown
Author

Awaiting @mhegazy to approve just to be sure

@ghost ghost changed the title Expose ProjectService to plugins Add refreshDiagnostics() method to Project May 7, 2018
@ghost ghost merged commit 05b2506 into master May 7, 2018
@ghost ghost deleted the plugin_projectService branch May 7, 2018 19:38
@egamma

egamma commented May 8, 2018

Copy link
Copy Markdown
Member

@Andy-MS @mhegazy thanks! I´ll do another push on the tslint plugin for TS 2.9.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
This pull request was closed.
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.