mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Bug 535631. Cquery is now able to find compile_commands.json
Change-Id: I06515bf1ee9a210dc5ac4ff15fcc1f15d185b2f3 Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
This commit is contained in:
parent
af4a9223c3
commit
4215a26612
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ public class CqueryLanguageServer implements ICPPLanguageServer {
|
||||||
@Override
|
@Override
|
||||||
public Object getLSSpecificInitializationOptions(Object defaultInitOptions, URI rootPath) {
|
public Object getLSSpecificInitializationOptions(Object defaultInitOptions, URI rootPath) {
|
||||||
// TODO: Allow user to specify cache directory path
|
// TODO: Allow user to specify cache directory path
|
||||||
IPath cacheDirectory = Path.fromOSString(rootPath.getPath()).append(".cquery/cquery_index"); //$NON-NLS-1$
|
IPath cacheDirectory = Path.fromOSString(rootPath.getPath()).append(".lsp4e-cpp/cquery_index"); //$NON-NLS-1$
|
||||||
JsonObject result = (defaultInitOptions instanceof JsonObject) ? (JsonObject) defaultInitOptions : new JsonObject();
|
JsonObject result = (defaultInitOptions instanceof JsonObject) ? (JsonObject) defaultInitOptions : new JsonObject();
|
||||||
result.addProperty("cacheDirectory", cacheDirectory.toString()); //$NON-NLS-1$
|
result.addProperty("cacheDirectory", cacheDirectory.toString()); //$NON-NLS-1$
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue