Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto import inserts import into a comment #38914

Closed
yume-chan opened this issue Nov 22, 2017 · 1 comment
Closed

Auto import inserts import into a comment #38914

yume-chan opened this issue Nov 22, 2017 · 1 comment
Assignees
Labels
javascript JavaScript support issues

Comments

@yume-chan
Copy link
Contributor

yume-chan commented Nov 22, 2017

  • VSCode Version: Code - Insiders 1.19.0-insider (d294b25, 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
  2. Open in Code
  3. npm i @types/node
  4. Create index.js
  5. Type /// <reference types="node" />
  6. Type setTimeout, select the auto import suggest.

Expected Result:

/// <reference types="node" />

import { setTimeout } from "timers";

setTimeout

Actual Result:

/// <reference types="node" />import { setTimeout } from "timers";



setTimeout
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 27, 2017

This issue was moved to microsoft/TypeScript#20293

@mjbvz mjbvz closed this as completed Nov 27, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

2 participants