Closed
Description
Bug Report
🔎 Search Terms
- suggest / suggestions
- completions
- IntelliSense
🕗 Version & Regression Information
4.8.0-dev.20220606, not a regression
💻 Code
Try using a method snippet that uses a this
parameter
interface IFoo {
bar(this: IFoo): void;
}
const foo: IFoo = {
// Trigger completions here
};
foo.bar();
🙁 Actual behavior
The this
parameter is also inserted:
interface IFoo {
bar(this: IFoo): void;
}
const foo: IFoo = {
bar(this) {
},
};
foo.bar();
🙂 Expected behavior
The this parameter should likely be omitted in this case