i am tired of getting useless multiple other kind of suggestions in dart why?
Are you able to provide some more specific details, such as how long completions are taking, and some specific examples of where you think the ranking is bad?
There are some open issues about ranking in the SDK (such as https://github.com/dart-lang/sdk/issues/38739 and https://github.com/dart-lang/sdk/issues/43657) but more examples are always useful.
It's also worth bearing in mind that the Dart extension/language server only control the ranking when there is no prefix in your code. Once you start typing (or if you invoke completion in an existing identifier), the ranking is controlled by VS Code (see https://github.com/microsoft/vscode/blob/cb1dce0ef30d48c4259eb7d0a923926b3e6e16af/src/vs/vscode.d.ts#L3855-L3863).
Can you also confirm whether you have the "Dart: Preview LSP" setting enabled in VS Code, as the completion lists are built quite differently depending on that setting (generally I would expect LSP to be faster, and it will soon become the default - however there are still some issues with LSP in the current stable Flutter release).

this is the settings for it.
@fisforfaheem thanks, looks like you already have LSP enabled (which is good, since that's going to become the default option).
Can you confirm what sort of delays you're seeing on completion and whether this is consistent, or just in certain circumstances, and some examples of where the ranking is bad? Thanks!
When i am working on a project, when i press ctrl+. etc the suggestions take a while to open up etc these kind of slowness...also the suggestions should match the widget properties but sometimes it wont work as it should.
@fisforfaheem do you mean Ctrl+Space for completions, or Ctrl+. for quick-fix/lightbulb?
Are you able to take a screenshot showing the location where you invoked the completion next time you see it slow?
also the suggestions should match the widget properties but sometimes it wont work as it should.
Could you also get a screenshot of this, so there's a specific case to look at? I suspect it's something like https://github.com/dart-lang/sdk/issues/38739, but without a concrete example it's hard to be sure.
Thanks!
Ok i will send here, after some screnshoots.
here is one screenshot please see this: it's not the desired suggestion..


It should show the most immediate and proper suggestions why does it shows useless suggestions first???

The completion sorting issue is discussed in https://github.com/Dart-Code/Dart-Code/issues/3153.
Can you clarify whether the speed issue you're seeing is when opening completion (Ctrl+Space) or quick-fixes (Ctrl+.)? It may be a dupe of https://github.com/Dart-Code/Dart-Code/issues/3152.
Yeah Thanks hope the flutter responsible persons will fix it soon! also it's more of a latency issue... as it takes some time...as compared to VS studio ide which was way too fast
@fisforfaheem can you clarify the question above? Exactly which action is slow? And (approximately) how slow? Does it occur only after specific actions (for example while "analyzing" is showing in the status bar), or always?
when we are writing something...it show suggestions not instantly as
say..VStudio IDE, it takes some time and lags too a bit
On Mon, Mar 1, 2021 at 2:52 PM Danny Tuppeny notifications@github.com
wrote:
@fisforfaheem https://github.com/fisforfaheem can you clarify the
question above? Exactly which action is slow? And (approximately) how slow?
Does it occur only after specific actions (for example while "analyzing" is
showing in the status bar), or always?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Dart-Code/Dart-Code/issues/3150#issuecomment-787816873,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIRXJSGZB4UP2OCAE2B2GILTBNPWTANCNFSM4X2NST6Q
.
@fisforfaheem can you give an idea of how long it's taking? It definitely won't be _instant_ as there's a bit of a round trip (VS Code asynchronously sends a request to the extension, which then sends it to the Dart language server, which computes the list, and then sends it back), however it definitely shouldn't feel slow.
If you invoke completion a few times, then run the Dart: Open Aanlyzer Diagnostics command from the VS Code command palette, it should open a web app with some diagnostics. Click Code Completion on the left, and it should give timings for the _servers_ part of completion. I'd be interested to see what sort of numbers you have here:

This issue has been marked stale because it is tagged awaiting-info for 30 days with no activity. Remove the stale label or comment to prevent the issue being closed in 10 days.
Thanks for your response. Will let you soo, currently removing
everything and reinstlaling everything and
On Mon, Mar 1, 2021 at 4:50 PM Danny Tuppeny @.*>
wrote:
@fisforfaheem https://github.com/fisforfaheem can you give an idea of
how long it's taking? It definitely won't be instant as there's a bit
of a round trip (VS Code asynchronously sends a request to the extension,
which then sends it to the Dart language server, which computes the list,
and then sends it back), however it definitely shouldn't feel slow.If you invoke completion a few times, then run the Dart: Open Aanlyzer
Diagnostics command from the VS Code command palette, it should open a
web app with some diagnostics. Click Code Completion on the left, and
it should give timings for the servers part of completion. I'd be
interested to see what sort of numbers you have here:[image: Screenshot 2021-03-01 at 11 49 59]
https://user-images.githubusercontent.com/1078012/109493361-46fa1b80-7a84-11eb-8042-4f1ec7c85a4c.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Dart-Code/Dart-Code/issues/3150#issuecomment-787888703,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIRXJSGE3YOIUYBHVPU2SVDTBN5Q3ANCNFSM4X2NST6Q
.
This issue has been marked stale because it is tagged awaiting-info for 30 days with no activity. Remove the stale label or comment to prevent the issue being closed in 10 days.