Skip to content

Customise extensions that import intellisense recognises #19018

Open

Description

@mjbvz

From Rich Harris (@Rich-Harris) on October 6, 2017 15:7

As of VSCode 1.17, typing import x from './ offers autocomplete suggestions of local files and directories. However, the list of file extensions that are recognised is somewhat arbitrary — .js files are recognised, as are .ts and .jsx, but .json isn't (despite the fact that the Node handles .json files natively).

Meanwhile, when building web applications with bundlers like Webpack and Rollup, it's common to import files with extensions like .css, .html, .vue, .tsv and so on.

Is there some way to customise the list of extensions that are recognised? An alternative approach could be to recognise all file extensions rather than attempting to filter them.

Copied from original issue: microsoft/vscode#35731

Activity

  1. removed their assignment
    on Oct 8, 2017
  2. mjbvz commented on Oct 8, 2017

    @mjbvz
    ContributorAuthor

    This is related to #10939 . Imports / requires of non-js/ts files will not be recognized by intellisense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: Completion ListsThe issue relates to showing completion lists in an editorIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions