如何使用角度语言服务?

问题描述 投票:4回答:1

我想用的能够做的模板文件完成后角语言服务功能。

我试图让插件与一个Atom包我使用atom-typescript工作。

我已经添加搞掂要在HTML文件被激活,以及包。

这是我的tsconfig.json文件

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "plugins": [{ "name": "@angular/language-service" }],
    "lib": [
      "es2016",
      "dom"
    ]
  }
}

这是的package.json

  "dependencies": {
    "@angular/animations": "^4.0.0",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.0",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/router": "^4.0.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.4.1",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular/cli": "1.2.2",
    "@angular/compiler-cli": "^4.0.0",
    "@angular/language-service": "^4.3.4",

原子 - 打字稿使用打字稿tsserver。所以我敢肯定的作品。把一些日志跟踪,我可以看到的角度语言服务也得到初始化。

我缺少的东西吗?

angular typescript atom-editor
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.