You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Add missing properties" quickfix generates the following:
import{Bar}from"./bar";constbar: Bar={bar: function(): SomeType{// <-- Cannot find name 'SomeType'thrownewError("Function not implemented.");}};
馃檪 Expected behavior
import{Bar,SomeType}from"./bar";// <-- SomeType should be importedconstbar: Bar={bar: function(): SomeType{thrownewError("Function not implemented.");}};
Bug Report
馃攷 Search Terms
quickfix missing properties imports
馃晽 Version & Regression Information
The quickfix was added in #44576 (cc @a-tarasyuk @komyg) but it doesn't appear to add missing imports.
馃捇 Code
馃檨 Actual behavior
The "Add missing properties" quickfix generates the following:
馃檪 Expected behavior
Note that this works correctly for classes:
Before quickfix:
After "Implement interface Bar" quickfix: