Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManish Khurana2018-06-29 07:38:37 +0000
committerNathan Ridge2018-07-01 05:54:32 +0000
commit4215a26612fe61b8d5243a9a73d16210d22a1c28 (patch)
treeee2c4781a06a92f811687327ad4130e9f4faedd0 /lsp4e-cpp
parentaf4a9223c341f8b33fe32244cc281c6a72f1ff6e (diff)
downloadorg.eclipse.cdt-4215a26612fe61b8d5243a9a73d16210d22a1c28.tar.gz
org.eclipse.cdt-4215a26612fe61b8d5243a9a73d16210d22a1c28.tar.xz
org.eclipse.cdt-4215a26612fe61b8d5243a9a73d16210d22a1c28.zip
Bug 535631. Cquery is now able to find compile_commands.json
Change-Id: I06515bf1ee9a210dc5ac4ff15fcc1f15d185b2f3 Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
Diffstat (limited to 'lsp4e-cpp')
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CqueryLanguageServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CqueryLanguageServer.java b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CqueryLanguageServer.java
index 8f153e9efb3..2f71e59e8fe 100644
--- a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CqueryLanguageServer.java
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CqueryLanguageServer.java
@@ -18,7 +18,7 @@ public class CqueryLanguageServer implements ICPPLanguageServer {
@Override
public Object getLSSpecificInitializationOptions(Object defaultInitOptions, URI rootPath) {
// 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();
result.addProperty("cacheDirectory", cacheDirectory.toString()); //$NON-NLS-1$
return result;

Back to the top