Closed andykais closed 3 years ago
given these files:
// src/database.ts export class Database {}
// src/index.ts import { Database } from './database' class Logger {} class Context { db = new Database() logger = new Logger() }
tsconfig.json:
{ "compilerOptions": { "outDir": "build", "sourceMap": true, "noImplicitAny": true, "strictNullChecks": true, "alwaysStrict": true, "strict": true, "declaration": true, "declarationMap": true }, "include": ["src/**/*.ts"] }
using "K" on a type definition that is imported will always be any types defined within a file are correctly shown:
any
my CocConfig:
{ "suggest.autoTrigger": "none", "diagnostic.enable": false, "signature.preferShownAbove": false }
Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
given these files:
tsconfig.json:
using "K" on a type definition that is imported will always be
any
types defined within a file are correctly shown:my CocConfig: