OS Version: macOS
TypeScript Version: typescript@^2.0.6-insiders.20161014 using vscode 1.7 insiders
Note: "typescript.experimentalAutomaticTypeAcquisition": true must be in your vscode user settings.
Steps to Reproduce
-
- clear
~/Library/Application Support/Microsoft/TypeScript/node_modules/@types
-
- start vscode on an workspace with the following two files:
package.json
{
"name": "test",
"version": "0.0.1",
"dependencies": {
"express" : "4.14.0"
},
"engines" : {
"node" : "6.7.0",
"npm" : "3.10.x"
}
}
test.js
var fs = require('fs');
fs.
-
- open
test.js in editor
-
- append to the file:
var calendar = require('node-calendar');
calendar.
-
- invoke inteliisense; no proposals
-
- open
package.json in the editor
-
- add the following dependency
"node-calendar" : "0.1.4"
-
- go back to
test.js
-
- place caret behind
calendar. and invoke intellisense using Cmd+Space
Expected behavior:
Intellisense proposals for the node-calendar module are presented
Actual behavior:
No node-calendar specific proposals are shown. ~/Library/Application Support/Microsoft/TypeScript/node_modules/@types remains unchanged.
-
- restart vscode
-
- repeat steps 8. and 9.
-> Intellisense proposals for the node-calendar module are presented
Note: When first adding the dependency for node-calendar in package.json and then adding the require in test.js auto acquisition and intellisense work as expected.
OS Version: macOS
TypeScript Version: typescript@^2.0.6-insiders.20161014 using vscode 1.7 insiders
Note:
"typescript.experimentalAutomaticTypeAcquisition": truemust be in your vscode user settings.Steps to Reproduce
~/Library/Application Support/Microsoft/TypeScript/node_modules/@typespackage.json{ "name": "test", "version": "0.0.1", "dependencies": { "express" : "4.14.0" }, "engines" : { "node" : "6.7.0", "npm" : "3.10.x" } }test.jstest.jsin editorpackage.jsonin the editortest.jscalendar.and invoke intellisense using Cmd+SpaceExpected behavior:
Intellisense proposals for the
node-calendarmodule are presentedActual behavior:
No
node-calendarspecific proposals are shown.~/Library/Application Support/Microsoft/TypeScript/node_modules/@typesremains unchanged.-> Intellisense proposals for the
node-calendarmodule are presentedNote: When first adding the dependency for
node-calendarinpackage.jsonand then adding the require intest.jsauto acquisition and intellisense work as expected.