Skip to content
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

Unrelated suggestions in Intellisense #37982

Closed
greggb opened this issue Nov 9, 2017 · 2 comments
Closed

Unrelated suggestions in Intellisense #37982

greggb opened this issue Nov 9, 2017 · 2 comments
Assignees
Labels
javascript JavaScript support issues *question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@greggb
Copy link

greggb commented Nov 9, 2017

  • VSCode Version: Code 1.18.0 (dcee220, 2017-11-08T12:32:39.870Z)
  • OS Version: Darwin x64 17.0.0
  • Extensions:

Looked to be resolved initially from these issues: #22372, #27899.

I'm able to have these suggestions disappear by toggling javascript.implicitProjectConfig.checkJs between true and false and opening a new file, but this doesn't persist through new/existing tabs.

Steps to Reproduce:

  1. Using VSCode either with extensions and settings or as a complete clean install
  2. Set syntax to javascript
  3. type rcc
  4. Observe intellisense showing additional suggestions

Reproduces without extensions: Yes

I'd like the suggestions to only include things from my files and extensions, and I think this is the intent.

screen shot 2017-11-09 at 2 23 02 pm

@vscodebot vscodebot bot added the new release label Nov 9, 2017
@vscodebot vscodebot bot assigned mjbvz Nov 9, 2017
@vscodebot vscodebot bot added the javascript JavaScript support issues label Nov 9, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Nov 9, 2017

I don't think this is the same issue as #27899. These suggestions come from the default standard library. To disable these, create a jsconfig.json at the root of your project with the contents:

{
    "compilerOptions": {
        "lib": [
            "es2015"
        ]
    },
    "exclude": [
        "node_modules",
        "**/node_modules/*"
    ]
}

Now only the standard JS library should be included in your suggestions. This page has more info about the lib compiler options

@mjbvz mjbvz closed this as completed Nov 9, 2017
@mjbvz mjbvz added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Nov 9, 2017
@greggb
Copy link
Author

greggb commented Nov 9, 2017

Ah, I see, thanks

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues *question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants