Repro steps:
- file > new project > express 4 template
- wait for packages to install and analysis to complete
- hovering over
app yields unknown type
When this issue occurs, of the top-level packages installed (the ones that appear in package.json and were installed with ), some appear to have been analyzed and some don't:
❌ body-parser: unknown type
❌ cookie-parser: unknown type
❌ debug: unknown type
❌ express: unknown type:
✔️ jade: completions available
✔️ morgan: completions available
✔️ serve-favicon: completions available
✔️ stylus: completions available
An interesting coincidence about this list is that the packages yielding unknown type are those packages sorted towards the beginning of the alphabet. This is consistently the case, and this issue appears to be unrelated to the sort order in package.json.
The express 3 template yields similar results:
❌ express: unknown type
❌ jade: unknown type
✔️ stylus: completions available
Workaround: if you install any other package, say azure, completions are suddenly available for all of the packages (including those towards the beginning of the alphabet.)
Repro steps:
appyieldsunknown typeWhen this issue occurs, of the top-level packages installed (the ones that appear in
package.jsonand were installed with ), some appear to have been analyzed and some don't:An interesting coincidence about this list is that the packages yielding
unknown typeare those packages sorted towards the beginning of the alphabet. This is consistently the case, and this issue appears to be unrelated to the sort order in package.json.The express 3 template yields similar results:
Workaround: if you install any other package, say
azure, completions are suddenly available for all of the packages (including those towards the beginning of the alphabet.)