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
x={/**/};// works, get completion for "p"x.p="/**/";// don't get good completions
Notsconfig.json.
Expected behavior:
Get completions inside string literal in a .js file.
Actual behavior:
Get nothing.
If works if I add a tsconfig.json and set --allowJs.
If I enable // @ts-check, I correctly get an error if I use a wrong string literal, so we are picking up the types.
I'm not sure how to reproduce this error in a fourslash test, because apparently if I don't set // @allowJs: true, it can't find the b.js file. Here was my attempt:
TypeScript Version: nightly (2.6.0-dev.20170928)
Code
a.d.ts
b.js:
No
tsconfig.json
.Expected behavior:
Get completions inside string literal in a
.js
file.Actual behavior:
Get nothing.
If works if I add a
tsconfig.json
and set--allowJs
.If I enable
// @ts-check
, I correctly get an error if I use a wrong string literal, so we are picking up the types.I'm not sure how to reproduce this error in a fourslash test, because apparently if I don't set
// @allowJs: true
, it can't find theb.js
file. Here was my attempt:The text was updated successfully, but these errors were encountered: