Skip to content

vscode does does not respect tsconfig.json configuration for ts files #39942

@hadson172

Description

@hadson172
  • VSCode Version: 1.47.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open empty folder
  2. Create .ts file
  3. "Go to project configuration"
  4. Configure tsconfig.json file
  5. Go to back to the .ts file, repeat step 3 (should navigate to the file, but instead it shows popup :
    image

Second approach to the same problem:

  1. Open empty folder

  2. Create two files: first.js and second.ts

  3. Type const a = 1000 in first.js and const a = 2134123 in second.ts (the values, modifier does not matter)

  4. Configure tsconfig.json with allowedJs: false
    image

  5. There shoud not be re-declaration error message in ts but it is:
    image

Third example of the same problem:

  1. Create two files - first.ts and second.ts
  2. Change property in tsconfig.json to modules: "none"
  3. VScode helps with imports when it should not

So why tsconfig.json is not respected?

Does this issue occur when all extensions are disabled?: Yes/No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions