You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After digging into the source code, I found that the language server (i.e. VLS) is using [email protected]. And if I switch the typescript.tsdk of the vscode to a local typescript of version 2.8.4, then same failure would reproduce in *.ts file.
After upgrading typescript dependency to ^3.3.0, fixing a few typescript-api-change related errors, and adopting the solution in #1045, it's now working in my machine.
I also tested my fork in a standalnoe travis CI environment, but, sadly, it fails one test on linux (while passing all tests on macOS). I cannot proceed any further as I don't have a linux machine at my hand .
I'm leaving this issue open just in case anyone else would come to similar problem.
Info
Problem
Intellisense is not working in certain case (I suppose it is related to
import
statement in.d.ts
file)Reproducible Case
Four files for reproduction:
lib/foo.d.ts
lib/index.d.ts
index.ts
index.vue
You may like to clone this reproduction repo, or, generate those files with following script
IMPORTANT: RUN THIS SCRIPT IN AN EMPTY DIRECTORY
Steps
a
variable inindex.ts
file. There would be a popover widget indicatinga
is of typeFoo
a
variable inindex.vue
file. There would be a popover widget indicationa
is of typeany
, which is WRONG.index.ts
file, type ina.
, then a popover shows and says there is aprop
property of typenumber
under variablea
index.vue
and there would be no popover.The text was updated successfully, but these errors were encountered: