简体   繁体   English

vs代码中的Typescript intellisense无法正常工作

[英]Typescript intellisense in vs code is not working

I was installing couple of typings for my node server and suddenly the intellisense stopped working. 我在为节点服务器安装几种类型的输入时,突然智能感知停止了工作。

Here is how my tsconfig.json looks: 这是我的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"
    ]
}

I am using Visual Studio Code 1.8.1 我正在使用Visual Studio Code 1.8.1

Just a quick tip: You might want to enable the TypeScript log so that it tracks errors in the TypeScript Service that is used by Visual Studio Code to power the TypeScript language features. 快速提示:您可能希望启用TypeScript日志,以便它跟踪TypeScript服务中的错误,Visual Studio Code使用它来为TypeScript语言功能提供支持。 On Windows, you have to set the "TSS_LOG" environment variable to "-level verbose" and I guess that it will be similar on Linux. 在Windows上,必须将“ TSS_LOG”环境变量设置为“ -level verbose”,我想它在Linux上会类似。 Afterwards, the log might give you a hint what went wrong. 之后,日志可能会提示您出了什么问题。 There were already several instances where entries in the tsconfig.json had caused issues for newer versions of the TS Service. 已经有很多实例,其中tsconfig.json中的条目导致了TS服务更新版本的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM