Re: Support for auto-completion etc
- From: makepost firemail cc
- To: Tony Houghton <h realh co uk>
- Cc: philip chimento gmail com, javascript-list gnome org
- Subject: Re: Support for auto-completion etc
- Date: Sun, 11 Nov 2018 01:02:07 +0200
VS Code JavaScript support has been at the level of TypeScript, since
last year or so it started using the TS compiler for JS internally.
YouCompleteMe deprecated Tern support and is moving to TypeScript as
well, see the project's homepage. Try adding this to your tsconfig.json
and reload:
```
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"allowJs": true,
"checkJs": true,
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true
},
"include": [
"node_modules/ts-for-gjs/out/index.d.ts",
"bin",
"src"
]
}
```
On 2018-11-11 00:53, Tony Houghton wrote:
Last time I was doing some significant Javascript development I found
that tern (via vim + YouCompleteMe) seemed to work better than VS
Code's built-in Javascript support. And if you're really into vim VS
Code's vim emulation isn't quite up to scratch.
On Sat, 10 Nov 2018 at 22:44, <makepost firemail cc> wrote:
Why Tern specifically? TypeScript compiler checks and autocompletes
JavaScript files well too.
On 2018-11-10 21:28, Philip Chimento via javascript-list wrote:
On Fri, Nov 9, 2018 at 3:20 PM Tony Houghton <h realh co uk>
wrote:
Seeing as someone's done most of the hard work already, wouldn't
it
be fairly simple to adapt ts-for-gjs with another generator for
tern?
Probably, yes!
_______________________________________________
javascript-list mailing list
javascript-list gnome org
https://mail.gnome.org/mailman/listinfo/javascript-list
--
TH
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]