sourcegraph / javascript-typescript-langserver

JavaScript and TypeScript code intelligence through the Language Server Protocol
https://sourcegraph.com
Apache License 2.0
793 stars 72 forks source link

Not reading configs from `tsconfig.json` #618

Open ZSaberLv0 opened 5 years ago

ZSaberLv0 commented 5 years ago

I'm using coc.nvim with javascript-typescript-stdio, but it seems not reading configs from my tsconfig.json

this. would trigger semantic completion correctly, but symbols from libs (or other dirs configured by tsconfig.json) can not be resolved


here is my config for coc.nvim:

call coc#config('languageserver.typescript', {
        \   'command': &shell,
        \   'args': [&shellcmdflag, 'javascript-typescript-stdio'],
        \   'filetypes': ['typescript', 'javascript'],
        \ })

and for vim-lsp:

call lsp#register_server({
        \   'name' : 'typescript',
        \   'cmd' : [&shell, &shellcmdflag, 'javascript-typescript-stdio'],
        \   'whitelist' : ['typescript', 'javascript'],
        \ })

and the tsconfig.json:

{
    "compilerOptions": {
        "target": "es5",
        "outDir": "bin-debug",
        "experimentalDecorators": true,
        "lib": [
            "es5",
            "dom",
            "es2015.promise"
        ],
        "types": []
    },
    "include": [
        "src",
        "libs"
    ]
}
tsujp commented 5 years ago

+1 any news on this?