Skip to content

using checkJs breaks intellisense on a deep require with no declaration file #28853

@jkantr

Description

@jkantr

TypeScript Version: 3.3.0-dev.20181204

Search Terms: checkjs allowjs breaks intellisense code completion

Code
Without checkJs turned on

With checkJs turned on

Expected behavior: With or without checkJs being on, intellisense should otherwise be able to infer the same code types for completion, even if a module being required doesn't have a typings file or module definition.

Actual behavior:
All intellisense / code completion is completely lost when checkJs is turned on but a required module doesn't have declarations.

After trying to find some guidance on the Gitter, I was told to lodge this here. By "checkJs" turned on, I mean here is my .tsconfig:

{
    "compilerOptions": {
        "outDir": "./built",
        "allowJs": true,
        "target": "es2018",
        "checkJs": true,
        "module": "commonjs",
        "esModuleInterop": true,
        "allowSyntheticDefaultImports": true
    }
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDesign LimitationConstraints of the existing architecture prevent this from being fixedDomain: LS: Completion ListsThe issue relates to showing completion lists in an editor

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions