Skip to content

require with slash makes IntelliSense extremely unresponsive #19459

Closed

Description

@octref

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 Matt Bierner (@mjbvz)

Activity

  1. mjbvz commented on Oct 24, 2017

    @mjbvz
    Contributor

    Duplicate of #19458

  2. locked and limited conversation to collaborators on Jun 14, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions