-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed as not planned
Closed as not planned
Copy link
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editor
Milestone
Description
TS Template added by @mjbvz
TypeScript Version: 3.9.6
Search Terms
- untitled
- suggest / suggestions
I'm not sure if this is the right place to open the issue (I also don't know where the TS language server is on github), so if it isn't, move the issue to the right place please :)
Steps to Reproduce:
- Open a new untitled file
- Set the syntax to javascript
- Paste the following code:
/** * @type {import('webpack').Configuration} */ module.exports = { };
- Ctrl+click the word
Configurationto jump to the type definitions file, and make sure it is the one that comes with VSCode (on Windows it's%LOCALAPPDATA%\Microsoft\TypeScript\3.9\node_modules\@types\webpack\index.d.ts). - Go back to the untitled file, and place the cursor inside the braces of the exports object
- Trigger autocompletion popup using Ctrl+Space
- Only snippets and words from the current file are suggested, instead of members from the type definition.
- Close the popup using Escape
- Type m
- The completions for
modeandmoduleappear, from the type definition.
If you repeat this with a saved file inside a folder with @types/webpack installed in node_modules, the autocompletion will show all the members as expected.
- VS Code Version: Code - Insiders 1.47.0-insider (376d9d9, 2020-07-03T10:27:06.804Z)
- OS Version: Windows_NT x64 10.0.18363
Does this issue occur when all extensions are disabled?: Yes
Metadata
Metadata
Assignees
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editor