Closed khaitranhq closed 3 years ago
Can't require from module.exports or exports
// root/a/b/c.js 'use strict'; module.exports = { LOGIN_WARNING: 'LOGIN_WARNING', RESET_PASSWORD: 'RESET_PASSWORD' }
// root/d/e/f.js console.log(RESET_PASSWORD)
// jsconfig.json { "compilerOptions": { "module": "commonJS", "allowSyntheticDefaultImports": true }, "exclude": ["node_modules"], "include": ["utils/*", "lib/**/*"] }
Show suggestion for RESET_PASSWORD
RESET_PASSWORD
Moreover, I don't have any configuration about tsserver in coc-settings.json
coc-settings.json
Send your feature request to typescript project.
I don't think this is the shortcoming of typescript. I tried with VS Code and it worked well.
typescript
VS Code
Thanks for the great update
Describe
Can't require from module.exports or exports
Code
Expectation
Show suggestion for
RESET_PASSWORD
Actuality
Moreover, I don't have any configuration about tsserver in
coc-settings.json