Skip to content

require with slash makes IntelliSense extremely unresponsive #19459

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
octref opened this issue Oct 24, 2017 · 1 comment
Closed

require with slash makes IntelliSense extremely unresponsive #19459

octref opened this issue Oct 24, 2017 · 1 comment

Comments

@octref
Copy link

octref commented Oct 24, 2017

TypeScript Version: 2.6.1-insiders.20171019

OS: macOS 10.12.6

Code

  • Use https://github.com/Microsoft/vscode-generator-code to generate a JavaScript VS Code extension

  • npm install sass.js

  • Add a file scss.js

    //@ts-check
    const compile = require('sass.js/dist/sass.node')
    
    compile('test.scss', { style: compile.Sass.style.compressed }, (res) => {
      console.log(res.text);
    })

Expected behavior: IntelliSense still works

Actual behavior: IntelliSense in any of the js files in the project takes 5 second to load

ts

Zipped workspace (no node_modules, install them before trying)
matb.zip

/cc @mjbvz

@mjbvz
Copy link
Contributor

mjbvz commented Oct 24, 2017

Duplicate of #19458

@mjbvz mjbvz marked this as a duplicate of #19458 Oct 24, 2017
@mjbvz mjbvz closed this as completed Oct 24, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants