Fix VSCode You-Complete-Me docs
* Add workarounds for YCM build failures
* Fix recommended vscode settings to match recommended YCM path
Bug: none
Change-Id: I906ce3ede9d58ff2974de1c0d094eefd00b9f589
Reviewed-on: https://chromium-review.googlesource.com/546155
Reviewed-by: Ken Rockot <[email protected]>
Commit-Queue: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/master@{#481921}
diff --git a/docs/vscode.md b/docs/vscode.md
index 024afaa..e7252f1 100644
--- a/docs/vscode.md
+++ b/docs/vscode.md
@@ -81,9 +81,12 @@
```
$ git clone https://github.com/Valloric/ycmd.git ~/.ycmd
+$ git submodule update --init --recursive
$ cd ~/.ycmd
$ ./build.py --clang-completer
```
+If it fails with "Your C++ compiler does NOT fully support C++11." but you know
+you have a good compiler, hack cpp/CMakeLists.txt to set CPP11_AVAILABLE true.
The following extensions might be useful for you as well:
@@ -213,8 +216,8 @@
"C_Cpp.clang_format_formatOnSave": true,
// YouCompleteMe
- "ycmd.path": "<full_path_to_your_home>/.vim/bundle/YouCompleteMe/third_party/ycmd",
- "ycmd.global_extra_config": "<full_path_to_your_home>/chromium/src/tools/vim/.ycm_extra_conf.py",
+ "ycmd.path": "<full_path_to_your_home>/.ycmd",
+ "ycmd.global_extra_config": "${workspaceRoot}/tools/vim/chromium.ycm_extra_conf.py",
"ycmd.confirm_extra_conf": false,
}
```