Skip to content

target cannot remove keyword completions from newer JS versions in jsconfig.json #50956

@RYLF5

Description

@RYLF5

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

  • VS Code Version: 1.71.2
  • OS Version: macOS 11.6.6

Steps to Reproduce:

  1. File > New File save as test.js in a new folder "test"
  2. Open folder "test" in vsCode
  3. Click "Yes, I trust the authors"
  4. run "Javascript: go to project configuration" from command palette
  5. click "Configure jsconfig.json"
  6. replace the default contents with
    {
    "compilerOptions": {
    "lib": ["ES5"]
    }
    }
  7. save jsconfig.json
  8. type "con" in test.js
  9. Observe that "const" is suggested by intellisense even though const is not supported by ES5:

Screen Shot 2022-09-26 at 9 59 42 AM

This continues even after restarting vsCode. In one case jsconfig.json was respected (con didn't cause intellisense to suggest const), but after restarting vsCode jsconfig.json was no longer respected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Out of ScopeThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions