Quramy / tsuquyomi

A Vim plugin for TypeScript

Home Page:http://www.vim.org/scripts/script.php?script_id=5151

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show different compilation errors for the same file

wcalderipe opened this issue · comments

I'm having different compilation errors for the same file but in different directories.

I noticed that compilation errors for files inside the test/ directory are different from those showed for files in the src/. In order to prove that, I did copy a test file with weird compilation errors to the src/ directory (see attached images).

Although, if I do include the test directory in the tsconfig.json the problem somehow is "solved". However, I don't want that my development environment impact in the configuration of third party TypeScript projects. Is it possible to fix this problem without adding the test folder in the include option of the compiler?

{
  "compileOnSave": true,
  "compilerOptions": {
    "lib": [
      "es6",
      "esnext.asynciterable"
    ],
    "module": "commonjs",
    "moduleResolution": "node",
    "noUnusedLocals": true,
    "outDir": "dist",
    "removeComments": true,
    "skipLibCheck": true,
    "sourceMap": true,
    "strict": true,
    "target": "es2015"
  },
  "exclude": [
    "node_modules"
  ],
  "include": [
    "src"
  ]
}

screenshot from 2019-01-27 11-29-22
Image 01: repository.test.ts inside the test/unit/ directory showing lots of compilation errors.

screenshot from 2019-01-27 11-49-09
Image 02: repository.test.ts moved to src/ directory without compilation errors.

Closing the issue due to the lack of response,