Skip to content

IntelliSense not working when esModuleInterop was true and swagger-parser was imported. #40355

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
JasonHK opened this issue Sep 2, 2020 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Rescheduled This issue was previously scheduled to an earlier milestone

Comments

@JasonHK
Copy link

JasonHK commented Sep 2, 2020

TypeScript Version: 4.1.0-dev.20200902

Search Terms: tsserver, IntelliSense, VSCode, esModuleInterop, swagger-parser

Code

tsconfig.json:

{
    "compilerOptions": {
        "target": "ES2015",
        "allowSyntheticDefaultImports": true,
        "esModuleInterop": true,
        "moduleResolution": "Node"
    }
}

index.ts:

import SwaggerParser from "swagger-parser";

Expected behaviour:

Suggestions should shown when I press the Tab key.

Actual behaviour:

No suggestions were shown.

2020-09-03_00001

Repository Link:

https://github.com/JasonHK-Reproductions/TypeScript-IntelliSense-not-working-when-esModuleInterop-was-true

Related Issues:

N/A

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Sep 9, 2020
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 4.1.0 milestone Sep 9, 2020
@RyanCavanaugh
Copy link
Member

@elibarzilay I suspect there's a crash going on in the LS

@RyanCavanaugh
Copy link
Member

Sorry, it looks like this one slipped through the cracks. I'm going to assume this has been fixed by now. Please open a new issue if not.

@RyanCavanaugh RyanCavanaugh closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Rescheduled This issue was previously scheduled to an earlier milestone
Projects
None yet
Development

No branches or pull requests

4 participants