You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript intellisence proposes snippets before properties in object literals #6667
Johannes Rieken (@jrieken)Martin Aeschlimann (@aeschli) the snippets are declared in the package.json pointing to an external file. Who decides to sort them before the properties returned from the intellisense. I always thought language suggestions come first.
Snippets have been sorted like regular suggestion ever since - generally we sort all suggestion alphabetically and reveal the best match. The real issue here is that none of the snippets make sense there. Which would make it a duplicate of #1304. Otherwise, it looks like a dupe of #2343 - and for consideration there is folks that want snippet more than everything else: #5121
Johannes Rieken (@jrieken) this doesn't seem to be the case for JS. Here is a screen shot with Code Complete in a JS file in our smoke test. Interestingly snippets appear at the end here:
Yes, it is because of the sort text. Martin Aeschlimann (@aeschli) and I debugged it. However from an end user experience this is confusing. We should invest into a better and more consistent story here.
Agree. The idea of the sortText was to give suggestions with complex labels a any chance to get a good sorting. Problem with JS salsa suggestion is that it sets the sort text to either 0 or 1.
As you can see, inside the fetch parameter of type RequestInit, snippets are shown in the middle of the properties. I think they should be shown at the end or even not shown at all. I think snippets make sense when in an empty line, not in the middle of a function call, right?
Activity
dbaeumer commentedon May 23, 2016
Johannes Rieken (@jrieken) Martin Aeschlimann (@aeschli) the snippets are declared in the package.json pointing to an external file. Who decides to sort them before the properties returned from the intellisense. I always thought language suggestions come first.
jrieken commentedon May 23, 2016
Snippets have been sorted like regular suggestion ever since - generally we sort all suggestion alphabetically and reveal the best match. The real issue here is that none of the snippets make sense there. Which would make it a duplicate of #1304. Otherwise, it looks like a dupe of #2343 - and for consideration there is folks that want snippet more than everything else: #5121
dbaeumer commentedon May 24, 2016
Johannes Rieken (@jrieken) this doesn't seem to be the case for JS. Here is a screen shot with Code Complete in a JS file in our smoke test. Interestingly snippets appear at the end here:
dbaeumer commentedon May 24, 2016
I will remove the May milestone since this is nothing we can cleanup for May. However we need to agree on a better story here.
jrieken commentedon May 24, 2016
my guess is that that's because of the sortText some suggestions in JS have. we should digg into that...
dbaeumer commentedon May 24, 2016
Yes, it is because of the sort text. Martin Aeschlimann (@aeschli) and I debugged it. However from an end user experience this is confusing. We should invest into a better and more consistent story here.
jrieken commentedon May 24, 2016
Agree. The idea of the sortText was to give suggestions with complex labels a any chance to get a good sorting. Problem with JS salsa suggestion is that it sets the sort text to either
0or1.empz commentedon Jun 27, 2016
Came here to post this issue too.

As you can see, inside the fetch parameter of type
RequestInit, snippets are shown in the middle of the properties. I think they should be shown at the end or even not shown at all. I think snippets make sense when in an empty line, not in the middle of a function call, right?heroboy commentedon Jul 8, 2016
vscode:1.3.0
press tab not complete the property, but show the snippet.
Haemoglobin commentedon Jul 16, 2016
👍