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

Request - Webpack IntelliSense #24270

Closed
waderyan opened this issue Apr 7, 2017 · 2 comments
Closed

Request - Webpack IntelliSense #24270

waderyan opened this issue Apr 7, 2017 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@waderyan
Copy link

waderyan commented Apr 7, 2017

Test tour for MERN starter kit #22277

  • VSCode Version: Insiders
  • OS Version: macOS

Steps to Reproduce:

  1. Clone MERN starter kit
  2. Open one of the webpack.*.js files.

I'm not sure how this could be done. A common pattern with webpack is to module.exports all the webpack configuration. If VS Code could give IntelliSense in that location (by maybe determining that its a webpack file) - that would be very neat.

image

@Spown
Copy link

Spown commented Apr 8, 2017

this webpack module should supply a typings data, that if present, is interpreted by the TypeScript server and then used by Intellisense. If it doesn't provide typings or TypeScript is unable to produce a desirable data - then it won't happen. Its not VSCode's fault nor it's task to to magically produce it.

@chrmarti chrmarti added the feature-request Request for new features or functionality label Apr 8, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 14, 2017

Closing in favor of the more generic #24657

As mentioned in that issue, one possible workaround is using jsdocs:

import { Configuration } from 'webpack'

/**
 * @type {Configuration}
 */
const config = {
    
};

module.exports = config

However this TypeScript bug prevents the typings from being very useful in this case

@mjbvz mjbvz closed this as completed Apr 14, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants