'declare method' quick fix adds inline import #37781
Labels
Bug
A bug in TypeScript
Domain: Auto-import
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
Uh oh!
There was an error while loading. Please reload this page.
From microsoft/vscode#94118
TypeScript Version: 3.9.0-dev.20200330
Search terms
Repro
For a project:
foo.ts
index.ts
declare method
quick fix onbaz
Expected behavior:
An import for
Foo
is added to the top of the file:Actual behavior:
An inline import is added:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: