winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.05k stars 198 forks source link

[Tracking Issue] VSCode extension auto completion #2690

Open staycoolcall911 opened 1 year ago

staycoolcall911 commented 1 year ago

@ekeren worked on this list before and it's about time we track what we have and what we're still missing.

The following scopes are where we'd like to see auto complete supported in the Wing VSCode extension. image

P1

P2

P3

staycoolcall911 commented 1 year ago

The code I used in order to see where completion works (it doesn't work in most places, but that's acceptable IMO 😄):

bring cloud;

let f1 = (s: str): str => {

};

let f2 = (s: str): str => {

};

let a: Array<str> = Array<str> [];

for i in 0..10 {

}

let words = ["hello", "world"];
for word in words {

}

while true {

}

class R {
  a: str;

  init(a: str) {
    this.a = a;
  }

  m1(title: str): str {
    return title + this.a;
  }

  inflight init() {

  }

  inflight m2(title: str): str {
    return title + this.a;
  }
}

class RR extends R {

}

let rr = new RR() as "something";

if 1 == 2 {

} elif 2 == 3 {

} else {

}
github-actions[bot] commented 1 year ago

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] commented 1 year ago

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!

staycoolcall911 commented 1 year ago

Updated the supported completions on P3 list in the issue description

github-actions[bot] commented 7 months ago

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] commented 4 months ago

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!