升级到typescript 3.0.1后缺少导入代码建议

升级到typescript 3.0.1后缺少导入代码建议,typescript,visual-studio-code,Typescript,Visual Studio Code,我使用VisualStudio代码的代码操作来节省编写导入语句的时间 例如,使用typescript@2.8.4我可以只写下我想导入的东西的名称,通常会有一个代码操作: 但是,如果我将Visual Studio代码中用于语言功能的typescript版本更改为typescript@3.0.1(VS code的当前版本)这些代码操作不可用: 我的文件夹结构是一种非常典型的设置,其中tsconfig.json与package.json和node\u modules/一起位于根目录中,我的类型脚本

我使用VisualStudio代码的代码操作来节省编写导入语句的时间

例如,使用
typescript@2.8.4
我可以只写下我想导入的东西的名称,通常会有一个代码操作:

但是,如果我将Visual Studio代码中用于语言功能的typescript版本更改为typescript@3.0.1(VS code的当前版本)这些代码操作不可用:

我的文件夹结构是一种非常典型的设置,其中
tsconfig.json
package.json
node\u modules/
一起位于根目录中,我的类型脚本文件位于
src/

/src/MyScript.ts
/node_modules/...
/package.json
/tsconfig.json
tsconfig.json文件是由
react脚本ts

{
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "build/dist",
    "module": "esnext",
    "target": "es5",
    "lib": ["es6", "dom"],
    "sourceMap": true,
    "allowJs": true,
    "jsx": "react",
    "moduleResolution": "node",
    "rootDir": "src",
    "forceConsistentCasingInFileNames": true,
    "noImplicitReturns": true,
    "noImplicitThis": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "suppressImplicitAnyIndexErrors": true,
    "noUnusedLocals": true
  },
  "exclude": [
    "node_modules",
    "build",
    "scripts",
    "acceptance-tests",
    "webpack",
    "jest",
    "src/setupTests.ts"
  ]
}
为什么会发生这种情况/我如何修复它?我在github问题上搜索了typescript和VS代码,并在Google上搜索了是否有其他人遇到了类似的问题,但没有找到任何关于这个特定问题的信息。
我正在Windows 10 x64上使用最新版本的VS代码(1.26.0)。

可能吗?尝试安装
typescript@next
进入您的项目并切换VS代码以使用它,看看问题是否消失。

可能吗?尝试安装
typescript@next
进入您的项目并切换VS代码以使用它,看看问题是否消失。@MattMcCutchen谢谢,已经解决了!请随意发布答案。:)