This patch adds bare-bone VS Code integration for development purposes of clangd.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
| clangd/clients/clangd-vscode/src/extension.ts | ||
|---|---|---|
| 1 ↗ | (On Diff #88914) | ES6 modules are always in strict mode, you can drop this here. |
| 7 ↗ | (On Diff #88914) | use /** JSDoc comments */ so that you get these comments on hover in the IDE. |
| 11 ↗ | (On Diff #88914) | prefer to always use const for variables that don't get re-assigned. |
| 17 ↗ | (On Diff #88914) | .h? |
| 23 ↗ | (On Diff #88914) | remove the tutorial comments? |
| 28 ↗ | (On Diff #88914) | this comment does not seem to fit the next line |
| clangd/clients/clangd-vscode/test/extension.test.ts | ||
| 2 ↗ | (On Diff #88914) | remove the tutorial comments? |
| clangd/clients/clangd-vscode/tsconfig.json | ||
| 7 ↗ | (On Diff #88914) | As this runs in a recent Node with pretty complete ES6 support, consider including:
These add declarations for a bunch of useful library builtins, e.g. for array iteration, String.repeat, and so on. |
| 10 ↗ | (On Diff #88914) | tsc supports a bunch of strictness options that you should enable. See here for the reference: https://www.typescriptlang.org/docs/handbook/compiler-options.html Enable:
The following are a bit questionable (I prefer to use tslint for them as they break the workflow):
|
| clangd/clients/clangd-vscode/vsc-extension-quickstart.md | ||
| 1 ↗ | (On Diff #88914) | drop or update? |