neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

tsconfig.json is not respected #310

Closed aquadesk closed 3 years ago

aquadesk commented 3 years ago

Hi

I can not figure out why my tsconfig.json is not being respected.

so I separated the issue and setup a repo here. https://github.com/aquadesk/tsconfig-not-respected this is my example repository

basically "noImplicitAny": false this config is not being respected.

However, when I run npx tsc in the folder, it works fine. when I turn the option to true to see if the config file is being respected, it gives correct error messages

npx tsc
src/index.ts:1:24 - error TS7016: Could not find a declaration file for module 'postprocessing'. '/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/postprocessing/build/postprocessing.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/postprocessing` if it exists or add a new declaration (.d.ts) file containing `declare module 'postprocessing';`

1 import { random } from "postprocessing";
                         ~~~~~~~~~~~~~~~~

Found 1 error.

also for the config it looks good

npx tsc --showConfig
{
    "compilerOptions": {
        "target": "es5",
        "lib": [
            "dom",
            "dom.iterable",
            "esnext"
        ],
        "noImplicitAny": false
    },
    "files": [
        "./src/index.ts"
    ],
    "include": [
        "src"
    ]
}

I use neovim

nvim --version
NVIM v0.5.0-nightly-118-g186ba3b68
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20201102-66043-i7rf01/build/config -I/tmp/neovim-20201102-66043-i7rf01/src -I/usr/local/include -I/tmp/neovim-20201102-66043-i7rf01/deps-build/include -I/opt/local/include -I/tmp/neovim-20201102-66043-i7rf01/build/src/nvim/auto -I/tmp/neovim-20201102-66043-i7rf01/build/include
Compiled by zirho6@MBPro2.local

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-186ba3b/share/nvim"

Run :checkhealth for more info

When I oepn src/index.ts file https://github.com/aquadesk/tsconfig-not-respected/blob/master/src/index.ts I get this error from the vim

image

[tsserver 7016] [I] Could not find a declaration file for module 'postprocessing'. '/Users/zirho6/ Documents/Projects/examples/tsconfig-not-respected/ node_modules/postprocessing/build/postprocessing. js' implicitly has an 'any' type. Try npm i --save-dev @types/postprocessing if it exists or add a new declaration (.d.ts) file containing declare module 'postprocessing';

I am using nvm so I put my path in coc-settings.json

{
  "tsserver.enableJavascript": true,
  "tsserver.log": "verbose",
  "tsserver.npm": "/Users/zirho6/.nvm/versions/node/v12.22.6/bin/npm",
  "tsserver.trace.server": "verbose",
  "tsserver.disableAutomaticTypeAcquisition": false,
  "typescript.autoClosingTags": true,
  "css.lint.unknownAtRules": "ignore",
  "suggest.snippetIndicator": "[+SS] ",
  "suggest.noselect": false,
  "tailwindCSS.trace.server": "verbose"
}

I've set the default node version to v12

  master  node -v
v12.22.6
 ~/Documents/Projects/examples/tsconfig-not-respected   master  which node
/Users/zirho6/.nvm/versions/node/v12.22.6/bin/node
 ~/Documents/Projects/examples/tsconfig-not-respected   master  which npm
/Users/zirho6/.nvm/versions/node/v12.22.6/bin/npm

  master  nvm ls
        v12.4.0
->     v12.22.6
       v14.15.4
         system
default -> v12 (-> v12.22.6)

I have captured logs in the repo as well https://github.com/aquadesk/tsconfig-not-respected/blob/master/tsserver.log (I am also attaching it at the bottom here)

I think I found some of these errors and I suspect this could be the root cause.

Failed Lookup Locations

Can anyone help?

thanks!

Info 0    [22:49:07.289] Starting TS Server
Info 1    [22:49:07.290] Version: 4.4.2
Info 2    [22:49:07.290] Arguments: /Users/zirho6/.nvm/versions/node/v12.22.6/bin/node /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/tsserver.js --allowLocalPluginLoads --useInferredProjectPerProjectRoot --cancellationPipeName /var/folders/j9/vgh6xy2d29b5hqw04ppdbxb40000gn/T/coc.nvim-55609/coc-nvim-tscancellation-9ecbcd3d5e1866c7735d.sock* --logVerbosity verbose --logFile /var/folders/j9/vgh6xy2d29b5hqw04ppdbxb40000gn/T/coc.nvim-55609/tsserver.log --npmLocation "/Users/zirho6/.nvm/versions/node/v12.22.6/bin/npm" --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3    [22:49:07.290] Platform: darwin NodeVersion: 12 CaseSensitive: false
Info 4    [22:49:07.290] ServerMode: undefined syntaxOnly: false hasUnknownServerMode: undefined
Info 5    [22:49:07.294] Binding...
Info 6    [22:49:07.301] event:
    {"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":55624}}
Info 7    [22:49:07.303] request:
    {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"coc-nvim","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 8    [22:49:07.304] Host information coc-nvim
Info 9    [22:49:07.304] response:
    {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 10   [22:49:07.304] 0::configure: async elapsed time (in milliseconds) 0.7876
Info 11   [22:49:07.304] request:
    {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Perf 12   [22:49:07.305] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.4321
Info 13   [22:49:07.305] response:
    {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 14   [22:49:07.305] request:
    {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","fileContent":"import { random } from \"postprocessing\";\n\nconsole.log(random);\n","projectRootPath":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected","scriptKindName":"TS"}]}}
Info 15   [22:49:07.306] Search path: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src
Info 16   [22:49:07.307] For info: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts :: Config file name: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json
Info 17   [22:49:07.307] Creating configuration project /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json
Info 18   [22:49:07.309] FileWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json 2000 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Config file
Info 19   [22:49:07.310] event:
    {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json","reason":"Creating possible configured project for /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts to open"}}
Info 20   [22:49:07.324] Config: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json : {
 "rootNames": [
  "/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts"
 ],
 "options": {
  "target": 1,
  "lib": [
   "lib.dom.d.ts",
   "lib.dom.iterable.d.ts",
   "lib.esnext.d.ts"
  ],
  "noImplicitAny": true,
  "configFilePath": "/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json"
 }
}
Info 21   [22:49:07.325] DirectoryWatcher:: Added:: WatchInfo: /users/zirho6/documents/projects/examples/tsconfig-not-respected/src 1 undefined Config: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Wild card directory
Info 22   [22:49:07.331] Elapsed:: 6.386893004179001ms DirectoryWatcher:: Added:: WatchInfo: /users/zirho6/documents/projects/examples/tsconfig-not-respected/src 1 undefined Config: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Wild card directory
Info 23   [22:49:07.332] Local plugin loading enabled; adding /users/zirho6/documents/projects/examples/tsconfig-not-respected to search paths
Info 24   [22:49:07.334] Starting updateGraphWorker: Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json
Info 25   [22:49:07.353] DirectoryWatcher:: Added:: WatchInfo: /users/zirho6/documents/projects/examples/tsconfig-not-respected/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
Info 26   [22:49:07.353] Elapsed:: 0.24640201032161713ms DirectoryWatcher:: Added:: WatchInfo: /users/zirho6/documents/projects/examples/tsconfig-not-respected/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
Info 27   [22:49:08.127] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 28   [22:49:08.127] Elapsed:: 0.18968600034713745ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 29   [22:49:08.127] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 30   [22:49:08.128] Elapsed:: 0.13522499799728394ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 31   [22:49:08.128] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 32   [22:49:08.129] Elapsed:: 0.7187539935112ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 33   [22:49:08.129] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 34   [22:49:08.129] Elapsed:: 0.09515699744224548ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/node_modules 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Failed Lookup Locations
Info 35   [22:49:08.130] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 36   [22:49:08.130] Elapsed:: 0.1114410012960434ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 37   [22:49:08.130] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 38   [22:49:08.131] Elapsed:: 0.08783699572086334ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/examples/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 39   [22:49:08.131] DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 40   [22:49:08.131] Elapsed:: 0.07980899512767792ms DirectoryWatcher:: Added:: WatchInfo: /Users/zirho6/Documents/Projects/node_modules/@types 1 undefined Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json WatchType: Type roots
Info 41   [22:49:08.131] Finishing updateGraphWorker: Project: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed: 797.152851998806ms
Info 42   [22:49:08.131] Project '/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json' (Configured)
Info 43   [22:49:08.136]    Files (46)
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es5.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2016.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2019.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2021.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.esnext.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.dom.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.dom.iterable.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.core.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.collection.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.generator.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.iterable.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.promise.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.proxy.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.reflect.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.symbol.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2016.array.include.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.object.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.string.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.intl.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.intl.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.promise.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2018.regexp.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2019.array.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2019.object.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2019.string.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2019.symbol.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.bigint.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.promise.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.string.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2020.intl.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2021.promise.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2021.string.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.es2021.weakref.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/typescript/lib/lib.esnext.intl.d.ts
    /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts

    node_modules/typescript/lib/lib.es5.d.ts
      Library referenced via 'es5' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.d.ts
      Library referenced via 'es2015' from file 'node_modules/typescript/lib/lib.es2016.d.ts'
    node_modules/typescript/lib/lib.es2016.d.ts
      Library referenced via 'es2016' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2017.d.ts
      Library referenced via 'es2017' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
    node_modules/typescript/lib/lib.es2018.d.ts
      Library referenced via 'es2018' from file 'node_modules/typescript/lib/lib.es2019.d.ts'
    node_modules/typescript/lib/lib.es2019.d.ts
      Library referenced via 'es2019' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.d.ts
      Library referenced via 'es2020' from file 'node_modules/typescript/lib/lib.es2021.d.ts'
    node_modules/typescript/lib/lib.es2021.d.ts
      Library referenced via 'es2021' from file 'node_modules/typescript/lib/lib.esnext.d.ts'
    node_modules/typescript/lib/lib.esnext.d.ts
      Library 'lib.esnext.d.ts' specified in compilerOptions
    node_modules/typescript/lib/lib.dom.d.ts
      Library 'lib.dom.d.ts' specified in compilerOptions
    node_modules/typescript/lib/lib.dom.iterable.d.ts
      Library 'lib.dom.iterable.d.ts' specified in compilerOptions
    node_modules/typescript/lib/lib.es2015.core.d.ts
      Library referenced via 'es2015.core' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.collection.d.ts
      Library referenced via 'es2015.collection' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.generator.d.ts
      Library referenced via 'es2015.generator' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.iterable.d.ts
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2015.generator.d.ts'
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2018.asynciterable.d.ts'
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2019.object.d.ts'
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2020.string.d.ts'
      Library referenced via 'es2015.iterable' from file 'node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts'
    node_modules/typescript/lib/lib.es2015.promise.d.ts
      Library referenced via 'es2015.promise' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.proxy.d.ts
      Library referenced via 'es2015.proxy' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.reflect.d.ts
      Library referenced via 'es2015.reflect' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
    node_modules/typescript/lib/lib.es2015.symbol.d.ts
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2015.iterable.d.ts'
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts'
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts'
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2018.asynciterable.d.ts'
      Library referenced via 'es2015.symbol' from file 'node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts'
    node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
      Library referenced via 'es2015.symbol.wellknown' from file 'node_modules/typescript/lib/lib.es2015.d.ts'
      Library referenced via 'es2015.symbol.wellknown' from file 'node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts'
    node_modules/typescript/lib/lib.es2016.array.include.d.ts
      Library referenced via 'es2016.array.include' from file 'node_modules/typescript/lib/lib.es2016.d.ts'
    node_modules/typescript/lib/lib.es2017.object.d.ts
      Library referenced via 'es2017.object' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts
      Library referenced via 'es2017.sharedmemory' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2017.string.d.ts
      Library referenced via 'es2017.string' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2017.intl.d.ts
      Library referenced via 'es2017.intl' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2017.typedarrays.d.ts
      Library referenced via 'es2017.typedarrays' from file 'node_modules/typescript/lib/lib.es2017.d.ts'
    node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts
      Library referenced via 'es2018.asyncgenerator' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
    node_modules/typescript/lib/lib.es2018.asynciterable.d.ts
      Library referenced via 'es2018.asynciterable' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
      Library referenced via 'es2018.asynciterable' from file 'node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts'
    node_modules/typescript/lib/lib.es2018.intl.d.ts
      Library referenced via 'es2018.intl' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
    node_modules/typescript/lib/lib.es2018.promise.d.ts
      Library referenced via 'es2018.promise' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
    node_modules/typescript/lib/lib.es2018.regexp.d.ts
      Library referenced via 'es2018.regexp' from file 'node_modules/typescript/lib/lib.es2018.d.ts'
    node_modules/typescript/lib/lib.es2019.array.d.ts
      Library referenced via 'es2019.array' from file 'node_modules/typescript/lib/lib.es2019.d.ts'
    node_modules/typescript/lib/lib.es2019.object.d.ts
      Library referenced via 'es2019.object' from file 'node_modules/typescript/lib/lib.es2019.d.ts'
    node_modules/typescript/lib/lib.es2019.string.d.ts
      Library referenced via 'es2019.string' from file 'node_modules/typescript/lib/lib.es2019.d.ts'
    node_modules/typescript/lib/lib.es2019.symbol.d.ts
      Library referenced via 'es2019.symbol' from file 'node_modules/typescript/lib/lib.es2019.d.ts'
    node_modules/typescript/lib/lib.es2020.bigint.d.ts
      Library referenced via 'es2020.bigint' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.promise.d.ts
      Library referenced via 'es2020.promise' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts
      Library referenced via 'es2020.sharedmemory' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.string.d.ts
      Library referenced via 'es2020.string' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts
      Library referenced via 'es2020.symbol.wellknown' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2020.intl.d.ts
      Library referenced via 'es2020.intl' from file 'node_modules/typescript/lib/lib.es2020.d.ts'
    node_modules/typescript/lib/lib.es2021.promise.d.ts
      Library referenced via 'es2021.promise' from file 'node_modules/typescript/lib/lib.es2021.d.ts'
    node_modules/typescript/lib/lib.es2021.string.d.ts
      Library referenced via 'es2021.string' from file 'node_modules/typescript/lib/lib.es2021.d.ts'
    node_modules/typescript/lib/lib.es2021.weakref.d.ts
      Library referenced via 'es2021.weakref' from file 'node_modules/typescript/lib/lib.es2021.d.ts'
    node_modules/typescript/lib/lib.esnext.intl.d.ts
      Library referenced via 'esnext.intl' from file 'node_modules/typescript/lib/lib.esnext.d.ts'
    src/index.ts
      Matched by include pattern 'src' in 'tsconfig.json'

Info 44   [22:49:08.136] -----------------------------------------------
Info 45   [22:49:08.138] FileWatcher:: Added:: WatchInfo: /users/zirho6/documents/projects/examples/tsconfig-not-respected/package.json 250 undefined WatchType: package.json file for import suggestions
Info 46   [22:49:08.141] event:
    {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json"}}
Info 47   [22:49:08.143] event:
    {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"89de4cc2484469ac9c39c1ec646fee1255d5cb8d9d8f74c4ac4ba1e2e8de5714","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":1,"tsSize":63,"tsx":0,"tsxSize":0,"dts":45,"dtsSize":1200824,"deferred":0,"deferredSize":0},"compilerOptions":{"target":"es5","lib":["dom","dom.iterable","esnext"],"noImplicitAny":true},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":true,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"4.4.2"}}}
Info 48   [22:49:08.154] event:
    {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","configFile":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json","diagnostics":[]}}
Info 49   [22:49:08.155] Project '/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json' (Configured)
Info 49   [22:49:08.155]    Files (46)

Info 49   [22:49:08.155] -----------------------------------------------
Info 49   [22:49:08.155] Open files: 
Info 49   [22:49:08.155]    FileName: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts ProjectRootPath: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected
Info 49   [22:49:08.155]        Projects: /Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/tsconfig.json
Perf 49   [22:49:08.155] 2::updateOpen: elapsed time (in milliseconds) 850.5232
Info 50   [22:49:08.155] response:
    {"seq":0,"type":"response","command":"updateOpen","request_seq":2,"success":true,"performanceData":{"updateGraphDurationMs":797.152851998806},"body":true}
Info 51   [22:49:08.157] request:
    {"seq":3,"type":"request","command":"geterr","arguments":{"delay":0,"files":["/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts"]}}
Perf 52   [22:49:08.157] 3::geterr: async elapsed time (in milliseconds) 0.5562
Info 53   [22:49:08.159] event:
    {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","diagnostics":[]}}
Info 54   [22:49:08.176] event:
    {"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","diagnostics":[{"start":{"line":1,"offset":24},"end":{"line":1,"offset":40},"text":"Could not find a declaration file for module 'postprocessing'. '/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/node_modules/postprocessing/build/postprocessing.js' implicitly has an 'any' type.\n  Try `npm i --save-dev @types/postprocessing` if it exists or add a new declaration (.d.ts) file containing `declare module 'postprocessing';`","code":7016,"category":"error"}]}}
Info 55   [22:49:08.177] event:
    {"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","diagnostics":[]}}
Info 56   [22:49:08.177] event:
    {"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Info 57   [22:49:19.071] request:
    {"seq":4,"type":"request","command":"documentHighlights","arguments":{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","line":1,"offset":1,"filesToSearch":["/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts"]}}
Perf 58   [22:49:19.074] 4::documentHighlights: elapsed time (in milliseconds) 2.7490
Info 59   [22:49:19.074] response:
    {"seq":0,"type":"response","command":"documentHighlights","request_seq":4,"success":true,"body":[]}
Info 60   [22:49:21.174] request:
    {"seq":5,"type":"request","command":"documentHighlights","arguments":{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","line":1,"offset":25,"filesToSearch":["/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts"]}}
Perf 61   [22:49:21.177] 5::documentHighlights: elapsed time (in milliseconds) 2.8859
Info 62   [22:49:21.177] response:
    {"seq":0,"type":"response","command":"documentHighlights","request_seq":5,"success":true,"body":[{"file":"/Users/zirho6/Documents/Projects/examples/tsconfig-not-respected/src/index.ts","highlightSpans":[{"start":{"line":1,"offset":25},"end":{"line":1,"offset":39},"contextStart":{"line":1,"offset":1},"contextEnd":{"line":1,"offset":41},"kind":"reference"}]}]}
chemzqm commented 3 years ago

It's Hint diagnostic, use "typescript.suggestionActions.enabled": false to disable.

aquadesk commented 3 years ago

Thank you! that worked!!

aquadesk commented 3 years ago

for reference https://gist.github.com/aquadesk/f546160e10c4a51e000fcfefa0ec8bee