_From @yume-chan on November 22, 2017 2:8_ - VSCode Version: Code - Insiders 1.19.0-insider (d294b25f2dd5c96d89bd23f82bd5fd2c0958a4bd, 2017-11-21T06:34:51.660Z) - OS Version: Windows_NT x64 10.0.16299 - Extensions: Extensions are disabled --- Steps to Reproduce: 1. Create a new folder 1. Open in Code 2. `npm i @types/node` 3. Create `index.js` 4. Type `/// <reference types="node" />` 5. Type `setTimeout`, select the auto import suggest. Expected Result: ````JavaScript /// <reference types="node" /> import { setTimeout } from "timers"; setTimeout ```` Actual Result: ````JavaScript /// <reference types="node" />import { setTimeout } from "timers"; setTimeout ```` _Copied from original issue: Microsoft/vscode#38914_
Activity
mjbvz commentedon Nov 27, 2017
This is related to crlf line enedings. Here's the code action we get back for a crlf file:
With lf line endings, we instead get:
mhegazy commentedon Nov 28, 2017
From #20292 (comment)
oliversalzburg commentedon Nov 30, 2017
The case that was quoted in #20293 (comment) appeared on my workstation.
That happened on Windows in a file with LF.
weswigham commentedon Nov 30, 2017
I could swear that Andrew Casey (@amcasey) mentioned noticing this (or something very like it) before and having a fix for it; Am I wrong?