【问题标题】:Typescript intellisense in vs code is not workingvs代码中的打字稿智能感知不起作用
【发布时间】:2017-06-18 15:25:10
【问题描述】:

我正在为我的节点服务器安装几个类型,突然智能感知停止工作。

这是我的 tsconfig.json 的外观:

{
    "version": "0.1.0",
    "command": "tsc",
    "isShellCommand": true,
    "args": ["-p", "."],
    "showOutput": "silent",
    "problemMatcher": "$tsc",
    "compileOnSave": true,
    "buildOnSave": true,
    "compilerOptions": {
        "module": "commonjs",
        "removeComments": true,
        "noEmitHelpers": false,
        "target": "es5",
        "noResolve": true,
        "experimentalDecorators": true
    },
    "exclude": [
        "node_modules",
        "typings"
    ]
}

我正在使用 Visual Studio Code 1.8.1

【问题讨论】:

    标签: node.js typescript visual-studio-code


    【解决方案1】:

    只是一个快速提示:您可能希望启用 TypeScript 日志,以便它跟踪 TypeScript 服务中的错误,Visual Studio Code 使用该服务来支持 TypeScript 语言功能。在 Windows 上,您必须将“TSS_LOG”环境变量设置为“-level verbose”,我猜它在 Linux 上会类似。之后,日志可能会提示您出了什么问题。已经有几个实例表明 tsconfig.json 中的条目导致 TS 服务的较新版本出现问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-04
      • 2022-10-05
      • 2020-05-29
      • 2014-03-22
      • 2016-04-28
      • 1970-01-01
      相关资源
      最近更新 更多