Skip to content

Go to implementation should navigate to .js file instead of typescript type definitions #26325

Closed

Description

@Wenzil
  • VSCode Version: 1.12.1
  • OS Version: OS X

Steps to Reproduce:

  1. Open VS Code in a new workspace
  2. npm init -y
  3. npm install --save express
  4. npm install --save-dev @types/express
  5. In tsconfig.json:
{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "allowJs": true,
        "checkJs": true,
        "noEmit": true,
        "maxNodeModuleJsDepth": 1
    },
    "exclude": [
        "node_modules"
    ]
}
  1. In index.js:
const express = require('express')
  1. Right click on 'express', and choose Go to implementation

Expected behaviour:

The editor navigates to the .js file containing the module implementation (under node_modules/express)

Actual behaviour:

The editor navigates to the installed express type definitions

Activity

  1. Wenzil commented on May 9, 2017

    @Wenzil
    Author

    Somewhat related to #26329

  2. added
    *duplicate
    on May 10, 2017
  3. mjbvz commented on May 10, 2017

    @mjbvz
    Contributor

    Tracked upstream with microsoft/TypeScript#6209

  4. added
    feature-request
    typescript
    on May 10, 2017
  5. 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

*duplicatefeature-requesttypescript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions