winglang / wing

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

vscode "Rename failed to apply edits" #6546

Closed ekeren closed 2 weeks ago

ekeren commented 1 month ago

I tried this:

tried to use rename for variable k

bring cloud;

class Example {
  b: cloud.Bucket;
  new(b: cloud.Bucket){
    this.b = new cloud.Bucket();
    let k = "";
    log(k);
  }
}

and got:

image

Notice that when trying to rename k in this code, it works:

bring cloud;

class Example {
  // b: cloud.Bucket;
  new(c: cloud.Bucket){
    // this.b = new cloud.Bucket();
    let k = "";
    log(k);
  }
}

This happened:

NA

I expected this:

No response

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.74.8

Node.js Version

No response

Platform(s)

No response

Community Notes

monadabot commented 2 weeks ago

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