为什么在我按 Ctrl + space 打字稿之前,vs 代码中没有显示文件路径和安装的 npm 包的智能感知

Why intellesense for file path and installed npm package is not showing in vs code until I press Ctrl + space for typescript

intellisense 在我按下 ctrl + space 之前:enter image description here
按 ctrl + space 后的智能感知:enter image description here

我升级到 vs code 1.11.0 版本并打开了我的项目。当我尝试在代码中使用 import 语句时,在我按 ctr + space 之前,代码完成对已安装的节点模块不起作用。但以前(升级前)当我开始在 (import {foo} from 'fo') 中键入节点模块名称时,我看到了建议。对于 foo 文件,但现在(升级后)它不起作用。

我通过更改 strings: true 在 editor.quickSuggestions 中解决了它,在升级到 vscode 版本 1.11.0 后设置为 false。您可以通过转到文件 > 首选项 > 设置找到这些选项。然后 settings.json 将打开。然后搜索 editor.quickSuggestions 并单击编辑图标,然后将字符串设置为 true。 "editor.quickSuggestions": { "other": true, "comments": false, "strings": true }