Browse Source

Update ycmd submodule

As far as user facing changes go, there's two:

- `FixIt` for RLS
- Generic LSP completer can specify project root files, like
`Cargo.toml` for rust-analyzer.

Should also solve the go.googlesource.com problem for users from China.
Boris Staletic 5 years ago
parent
commit
a7f5aa6bc4
3 changed files with 17 additions and 9 deletions
  1. 8 4
      README.md
  2. 8 4
      doc/youcompleteme.txt
  3. 1 1
      third_party/ycmd

+ 8 - 4
README.md

@@ -851,6 +851,7 @@ Quick Feature Summary
 * Go to implementation (`GoToImplementation`)
 * Reference finding (`GoToReferences`)
 * View documentation comments for identifiers (`GetDoc`)
+* Automatically fix certain errors (`FixIt`)
 * Type information for identifiers (`GetType`)
 * Renaming symbols (`RefactorRename <new name>`)
 * Code formatting (`Format`)
@@ -1490,13 +1491,16 @@ let g:ycm_language_server =
   \     'filetypes': [ 'yaml' ]
   \   },
   \   {
-  \     'name': 'php',
-  \     'cmdline': [ '/path/to/php', '/path/to/php/server/php-language-server.php' ],
-  \     'filetypes': [ 'php' ]
+  \     'name': 'rust',
+  \     'cmdline': [ 'ra_lsp_server' ],
+  \     'filetypes': [ 'rust' ],
+  \     'project_root_files': [ 'Cargo.toml' ]
   \   }
   \ ]
 ```
 
+`project_root_files` is an optional key, since not all servers need it.
+
 When [configuring a LSP server](#lsp-configuration) the value of the `name` key
 will be used as the `kwargs[ 'language' ]`.
 
@@ -1958,7 +1962,7 @@ indication).
 **NOTE:** Causes re-parsing of the current translation unit.
 
 Supported in filetypes: `c, cpp, objc, objcpp, cuda, cs, go, java, javascript,
-typescript`
+rust, typescript`
 
 #### The `RefactorRename <new name>` subcommand
 

+ 8 - 4
doc/youcompleteme.txt

@@ -1087,6 +1087,7 @@ Rust ~
 - Go to implementation (|GoToImplementation|)
 - Reference finding (|GoToReferences|)
 - View documentation comments for identifiers (|GetDoc|)
+- Automatically fix certain errors (|FixIt|)
 - Type information for identifiers (|GetType|)
 - Renaming symbols ('RefactorRename <new name>')
 - Code formatting (|Format|)
@@ -1726,11 +1727,14 @@ be:
     'filetypes': [ 'yaml' ]
     },
   {
-    'name': 'php',
-    'cmdline': [ '/path/to/php', '/path/to/php/server/php-language-server.php' ],
-    'filetypes': [ 'php' ]
+    'name': 'rust',
+    'cmdline': [ 'ra_lsp_server' ],
+    'filetypes': [ 'rust' ],
+    'project_root_files': [ 'Cargo.toml' ]
   } ]
 <
+"project_root_files" is an optional key, since not all servers need it.
+
 When configuring a LSP server the value of the 'name' key will be used as the
 "kwargs[ 'language' ]".
 
@@ -2219,7 +2223,7 @@ indication).
 **NOTE:** Causes re-parsing of the current translation unit.
 
 Supported in filetypes: 'c, cpp, objc, objcpp, cuda, cs, go, java, javascript,
-typescript'
+rust, typescript'
 
 -------------------------------------------------------------------------------
                                                       *RefactorRename-new-name*

+ 1 - 1
third_party/ycmd

@@ -1 +1 @@
-Subproject commit 14a616c846f13a9ccb3003b04f390bd6071c7a95
+Subproject commit 3365e2d44817d127596f59f70a6240507eb4b0bc