-
Notifications
You must be signed in to change notification settings - Fork 123
refactor: use built-in WorkDoneProgressReport
to report NGCC progress
#1614
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
This is actually a really nice cleanup. Could you provide some more details in the commit message about how this accomplishes the same thing as before, but with much less code? That is, drop in some of the context from #1607 (comment) and other comments in that thread. |
Now the Angular extension implements the `WorkDoneProgressReport` by itself on the client-side to support the multi-report progress with different `tsconfig.json`, to show an error message, to dispose of the report progress, but it's already a built-in feature that can be used on the service side. On the service side, the built-in `WorkDoneProgressReport` will attach a unique token to the different report progress and clean the progress when the client is closing. On the service side, If an error report when running NGCC, the LSP also supports showing an error message in VSCode, but the ability to open the output channel is not supported(now the LSP only supports to open the document URI). This PR will only need to provide it. So the custom `WorkDoneProgressReport` can be removed on the client side.
71fe4a5
to
1a6005c
Compare
After the tip |
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.
🥇
…ss (#1614) Now the Angular extension implements the `WorkDoneProgressReport` by itself on the client-side to support the multi-report progress with different `tsconfig.json`, to show an error message, to dispose of the report progress, but it's already a built-in feature that can be used on the service side. On the service side, the built-in `WorkDoneProgressReport` will attach a unique token to the different report progress and clean the progress when the client is closing. On the service side, If an error report when running NGCC, the LSP also supports showing an error message in VSCode, but the ability to open the output channel is not supported(now the LSP only supports to open the document URI). This PR will only need to provide it. So the custom `WorkDoneProgressReport` can be removed on the client side. (cherry picked from commit 5157872)
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. |
Now the Angular extension implements the
WorkDoneProgressReport
by itself on the client-side to support the multi-report progress
with different
tsconfig.json
, to show an error message, todispose of the report progress, but it's already a built-in feature
that can be used on the service side.
On the service side, the built-in
WorkDoneProgressReport
willattach a unique token to the different report progress and clean
the progress when the client is closing.
On the service side, If an error report when running NGCC, the LSP
also supports showing an error message in VSCode, but the ability to
open the output channel is not supported(now the LSP only supports
to open the document URI). This PR will only need to provide it.
So the custom
WorkDoneProgressReport
can be removed on the client side.