Vscode: TypeScript types autocomplete stopped working

Created on 15 Jul 2017  路  7Comments  路  Source: microsoft/vscode


Autocomplete on types doesn't work in typescript files.

  • VSCode Version: 1.14.1
  • OS Version: Ubuntu 16.04

Steps to Reproduce:

  1. Open typescript file
  2. Declare the type of a variable


Reproduces without extensions: Yes

*duplicate typescript

Most helpful comment

Can confirm this for VSCode 1.14 on Windows 10 too. It's super annoying, I hope this gets fixed soon... Only types seem to be affected though, other autocompletions (e.g. variable names) work just fine.

All 7 comments

This problem exists on Windows 10 too, even for JavaScript.

This might be related to #30716.

I can confirm on Win10.
I tried insider version and disabled all extensions.

  • VSCode Version: Code - Insiders 1.15.0-insider (47a49c7fb8138fd27e2a95259ae96e9ac49a65a5, 2017-07-14T07:45:27.194Z)
  • OS Version: Windows_NT x64 10.0.15063

- Extensions: none

It is not working at all for insider and for current stable version.

For instance:

function (x:st...) should bring string but nothing has happened.

I believe there is something wrong with the parser.

See this:

let:string //Autocomplete works - weird, but works if typing str...
let x:string = "sd" //Autocomplete doesnt work for string type. It is taken from local variable scope if presented "string"

Strangely enough, Ctrl + Space works properly, but...

document.getElementById("s") as [Ctrl+Space] //doesnt work 
document.getElementById("s")  [Ctrl+Space] // works but in this context in makes no sense. You have to add add afterwards.

vscode_issue2
vscode_issue1

Can confirm this for VSCode 1.14 on Windows 10 too. It's super annoying, I hope this gets fixed soon... Only types seem to be affected though, other autocompletions (e.g. variable names) work just fine.

I also confirm this, Windows 10 with VS Code 1.14.1

I also confirm this, Windows 10 (build.15063) with VS Code 1.14.1 or VS Code 1.15-insiders and typescript 2.4.1 or 2.4.2-insiders.

For typescript 2.3.4 all works fine.

This is a duplicate of #30580. I'm working with the TS team to get a fix out soon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  路  3Comments

sijad picture sijad  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

biij5698 picture biij5698  路  3Comments

sirius1024 picture sirius1024  路  3Comments