We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TypeScript Version: 3.9.0-dev.20200420
Search Terms:
Code With @types/node installed, open a file:
@types/node
join(); homedir()
add all missing imports
Bug: The two imports are added on the same line:
import { join } from "path";import { homedir } from "os"; join(); homedir()
Here's the edit that TS Server returns in this case
[Trace - 23:52:04.985] <semantic> Response received: getCombinedCodeFix (72). Request took 13 ms. Success: true Result: { "changes": [ { "fileName": "/Users/matb/projects/san/test.ts", "textChanges": [ { "start": { "line": 1, "offset": 1 }, "end": { "line": 1, "offset": 1 }, "newText": "import { join } from \"path\";" }, { "start": { "line": 1, "offset": 1 }, "end": { "line": 1, "offset": 1 }, "newText": "import { homedir } from \"os\";\n" } ] } ] }
TypeScript Version: 3.9.0-dev.20200420
Search Terms:
Code
With
@types/nodeinstalled, open a file:add all missing importsBug:
The two imports are added on the same line:
Here's the edit that TS Server returns in this case