Skip to content

Autocompleted JavaScript imports do not include file extension #51259

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

Closed
coderpatsy opened this issue Jun 6, 2018 · 3 comments
Closed

Autocompleted JavaScript imports do not include file extension #51259

coderpatsy opened this issue Jun 6, 2018 · 3 comments
Assignees
Labels
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@coderpatsy
Copy link

  • VSCode Version: 1.24.0
  • OS Version: Windows 8.1

This problem was first noticed a couple days ago on 1.23.1, but I waited for the new release.

Steps to Reproduce:

  1. Have a module file with an export, say export.js
export function exampleExport() { }
  1. In another blank js file, start typing the name of your export and autocomplete it.
    exam [tab] becomes
import { exampleExport } from "./export";

exampleExport

Note that it it's trying to import from "./export", not from "./export.js". This breaks the import, at least in a browser context.

Does this issue occur when all extensions are disabled? Yes

@vscodebot
Copy link

vscodebot bot commented Jun 6, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the new release label Jun 6, 2018
@albertosantini
Copy link

albertosantini commented Jun 7, 2018

Duplicate of microsoft/TypeScript#24493

Edit: Maybe it is not a dupe, but it is related.

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 7, 2018

Moved upstream to get more feedback: microsoft/TypeScript#24779

@mjbvz mjbvz closed this as completed Jun 7, 2018
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) javascript JavaScript support issues typescript Typescript support issues labels Jun 7, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues typescript Typescript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants