Skip to content

MERN Starter kit: Relative file path not clickable in certain files #24276

Closed

Description

@ramya-rao-a

Test tour MERN - #22277

  • VSCode Version: Insiders
  • OS Version: Mac

Steps to Reproduce:

  1. In the MERN starter kit open App.js
  2. Press Cmd and hover around the main.css in require('./main.css');

Expected: Clickable link
Actual: No link

Doesn't work for css or json files. Works for js files

Activity

  1. gengxuelei commented on Apr 11, 2017

    @gengxuelei

    It is better to enhance the path intellisense.
    support:
    ① '/src/img/a.png'
    ② 'src/img/a.png'
    ③ './src/img/a.png'
    ④ '~src/img/a.png'(click the under link to see the detail for this demand)
    https://github.com/webpack-contrib/css-loader#usage
    ⑤ import('src/modules/a.ts');
    ⑥ import('src/modules/a.vue');
    ⑦ import('src/css/a.css');
    ⑧ require('src/modules/a.js');

    If the path can be automatically filled,I'd like to say goodbye to 'path-intellisense' & 'path-autocomplete';

    https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense
    https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete

  2. added
    feature-requestRequest for new features or functionality
    javascriptJavaScript support issues
    typescriptTypescript support issues
    upstreamIssue identified as 'upstream' component related (exists outside of VS Code)
    on Apr 12, 2017
  3. mjbvz commented on Apr 12, 2017

    @mjbvz
    Contributor

    Opened microsoft/TypeScript#15146 to track this on the TypeScript side

  4. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityjavascriptJavaScript support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions