aurelia / vscode-extension

An extension for the VS Code editor that provides Intellisense capabilities to your Aurelia project.
MIT License
112 stars 25 forks source link

[rename] out of sync still happens #183

Open hiaux0 opened 2 years ago

hiaux0 commented 2 years ago

174

  1. rename var1 (to shorter name)
  2. rename var2
  3. bug: breaks code
hiaux0 commented 2 years ago

Tried to play around, but cannot repro

@customElement({ name: 'custom-element', template })
export class CustomElementCustomElement {
  @bindable foo: string = '';
  @bindable bar;

  hello(arg?: any) {}

  qux;

  thisisnothing;
  okaynext;

  useFoo() {
    this.foo;

    this.qux

    this.hello(this.thisisnothing);
    this.thisisnothing; this.okaynext;
  }
}
hiaux0 commented 2 years ago

Another angle:

  1. do some editing
  2. dont save
  3. rename
  4. broken code