mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Update readme, add TODO
This commit is contained in:
parent
4c487ab797
commit
74d67b0eb5
@ -49,8 +49,9 @@ $ npm install
|
|||||||
$ code .
|
$ code .
|
||||||
```
|
```
|
||||||
|
|
||||||
After VSCode is running, update the `ServerOptions` inside of `extension.ts` to
|
After VSCode is running, update the `ServerOptions` inside of `extension.ts`
|
||||||
point to the absolute path of your build directory. For example,
|
to point to the absolute path of your build directory (specifically, the
|
||||||
|
`cwd` parameter). For example,
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let serverOptions: ServerOptions = {
|
let serverOptions: ServerOptions = {
|
||||||
@ -99,7 +100,7 @@ database emitted from your build system of choice. For example, here's how to
|
|||||||
generate one in ninja. When you sync your code you should regenerate this file.
|
generate one in ninja. When you sync your code you should regenerate this file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ninja -t compdb cxx cc > compile_commands.json
|
$ ninja -C out/Release -t compdb cxx cc > compile_commands.json
|
||||||
```
|
```
|
||||||
|
|
||||||
The `compile_commands.json` file should be in the top-level workspace directory.
|
The `compile_commands.json` file should be in the top-level workspace directory.
|
||||||
|
@ -372,5 +372,7 @@ void CompletionManager::UpdateActiveSession(const std::string& filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reparse |filename|.
|
// Reparse |filename|.
|
||||||
|
// TODO: Instead of actually reparsing it, see if we can hook into the
|
||||||
|
// indexer and steal the translation unit from there..
|
||||||
reparse_request.Set(MakeUnique<std::string>(filename));
|
reparse_request.Set(MakeUnique<std::string>(filename));
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user