vs代码中的Typescript intellisense不起作用

时间:2017-02-01 18:42:54

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

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

以下是我的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

1 个答案:

答案 0 :(得分:0)

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