wing icon indicating copy to clipboard operation
wing copied to clipboard

vscode irrelevant completion on variable definition

Open staycoolcall911 opened this issue 2 years ago • 8 comments

I tried this:

Tried to get completion for a ,variable definition:

bring cloud;

let bucket = 
        		 // ^ cursor here

This happened:

image

I expected this:

Expected to see the word new. Expected to see cloud (already there). Expected not to see assert, log, throw.

Is there a workaround?

No response

Component

IDE Extension

Wing Version

0.26.4

Node.js Version

18.15.0

Platform(s)

MacOS

Anything else?

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

staycoolcall911 avatar Aug 29 '23 11:08 staycoolcall911

Congrats! :rocket: This was released in Wing 0.41.12.

monadabot avatar Oct 23 '23 19:10 monadabot

This still shows irrelevant completions (assert, log) and doesn't show new, so I'll reopen. image

staycoolcall911 avatar Nov 08 '23 15:11 staycoolcall911

I guess if we're generating autocompletions in an expression position, we could filter out functions whose return type is void perhaps?

Chriscbr avatar Nov 08 '23 15:11 Chriscbr

I guess if we're generating autocompletions in an expression position, we could filter out functions whose return type is void perhaps?

Yeah that's what it says below this issue in this PR's description, maybe it was reverted somehow?

staycoolcall911 avatar Nov 08 '23 16:11 staycoolcall911

Thanks for reopening, it's a bug with the implementation. Looks like it only works when there is something after the completion

image

MarkMcCulloh avatar Nov 08 '23 16:11 MarkMcCulloh

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Feb 28 '24 06:02 github-actions[bot]

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar May 29 '24 06:05 github-actions[bot]

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Sep 21 '24 06:09 github-actions[bot]