-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fixes to run dart and flutter vscode extensions #6044
Conversation
564ba6c
to
7186cf3
Compare
I tried it with https://github.com/flutter/flutter_web (my fork of it) and ran into multiple issues:
|
Interestingly, eventually everything seemed to be installed and working nicely. |
As in the Dart process hanged, or something in the IDE? If it's the Dart process - it can be slow sometimes doing things like package resolution, but it shouldn't take forever. What's the simplest way for me to run this and see it?
How many do you mean by flooded? Are you still opening the whole flutter_web project, or just the example project? If just the example project I wouldn't expect many errors since there shouldn't be much code referencing the packages.
Are these issues you think in theia, or the extension? If you think the extension, do you still have the text? Thanks! |
@DanTup thank for your input! I will investigate it next day. Probably, just Theia needs a bit of optimizations. |
316d17f
to
4fab226
Compare
@svenefftinge Could you try again? There were 2 clients doing expensive computations based on problem markers: problem tab decorator and problem status element. Now they are debouncing and computations are optimized. @vince-fugnitto @fangnx Could you please test that problem tab bar decorations are still working properly? It does not need to be done with the Dart extension. |
The diagnostics are updated weirdly.
|
Also I noticed that after a change in the editor I can no longer apply any of the code actions proposed on components.
|
Let me know if it'd help much to have a build of the extension that isn't webpacked (we have to pack it to stop VS Code showing warnings due to slow sync module loading, but it probably makes understanding what's going on while debugging here harder).
|
52a4f53
to
fc03ce2
Compare
fc03ce2
to
bfb7722
Compare
@svenefftinge You can try again, now document changes and command args should be good. There is still an issue to resolve for code actions: #6095 I will have a look tomorrow. |
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.
Awesome! Works well for me now.
As a heads up, I published a new Dart extension yesterday (v3.4.0) and it had a bug in running tests from Code Lens, so I also published a v3.4.1 with a fix this morning. Release notes are here: https://dartcode.org/releases/v3-4/ I don't think there were any new APIs used in it, but I figured it worth calling out in case you see things failing that didn't before. |
i.e. not running on a remote workspace Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
…quest otherwise it fails `undefined` and swallows updates for other breakpoints Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
before it was stub with `true` always Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
It should be triggered when a os-wide URI is opened, for cloud case it is not necessary, so stubbing for now. As soon as os-wide opening of URIs is implemented for Electron this event should be fired as well. Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
- cache decorations - debounce rendering Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
- debounce status update - travers all markers only once, not for each Uri and then for each severity Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
… jsonrpc Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
bfb7722
to
6b80981
Compare
I've tested changes with following VS Code extensions
Everything seems fine, i.e. code lenses and actions are there, git integration too, and tree view content is proper. Also tried with typescript extension, but it cannot function properly without exposing internal monaco commands. I'm going to merge if the build is green and no objections. |
@DanTup I was testing always against the latest master state of Dart extension, so it should be fine. Updated I've retested with 3.4.1 and it works nicely as well. |
What it does
Various fixes to run dart and flutter vscode extensions (#3999):
How to test
Review checklist
Reminder for reviewers