Closed
Description
TypeScript Version: 2.8.0-rc
Search Terms:
- declare method
- quick fix
- code action
Code
class Foo {
a() {
this.b()
}
}
Trigger the declare method 'b'
quickfix on this.b()
Expected behavior:
Method inserted after current location (or possible at end of class)
class Foo {
a() {
this.b()
}
b(): any {
throw new Error("Method not implemented.");
}
}
Actual behavior:
Method inserted at top of class:
class Foo {
b(): any {
throw new Error("Method not implemented.");
}
a() {
this.b()
}
}