فهرست منبع

flake fix and readme update

Chiel92 11 سال پیش
والد
کامیت
cd6491290f
2فایلهای تغییر یافته به همراه6 افزوده شده و 8 حذف شده
  1. 3 3
      README.md
  2. 3 5
      python/ycm/completers/cs/cs_completer.py

+ 3 - 3
README.md

@@ -563,7 +563,7 @@ The various `GoTo*` subcommands add entries to Vim's `jumplist` so you can use
 
 Looks up the symbol under the cursor and jumps to its declaration.
 
-Supported in filetypes: `c, cpp, objc, objcpp, python`
+Supported in filetypes: `c, cpp, objc, objcpp, python, cs`
 
 ### The `GoToDefinition` subcommand
 
@@ -574,7 +574,7 @@ the definition of the symbol is in the current translation unit. A translation
 unit consists of the file you are editing and all the files you are including
 with `#include` directives (directly or indirectly) in that file.
 
-Supported in filetypes: `c, cpp, objc, objcpp, python`
+Supported in filetypes: `c, cpp, objc, objcpp, python, cs`
 
 ### The `GoToDefinitionElseDeclaration` subcommand
 
@@ -582,7 +582,7 @@ Looks up the symbol under the cursor and jumps to its definition if possible; if
 the definition is not accessible from the current translation unit, jumps to the
 symbol's declaration.
 
-Supported in filetypes: `c, cpp, objc, objcpp, python`
+Supported in filetypes: `c, cpp, objc, objcpp, python, cs`
 
 ### The `ClearCompilationFlagCache` subcommand
 

+ 3 - 5
python/ycm/completers/cs/cs_completer.py

@@ -90,11 +90,9 @@ class CsharpCompleter( ThreadedCompleter ):
       if self._ServerIsRunning():
         self._StopServer()
       self._StartServer()
-    elif command == 'GoToDefinition':
-      self._GoToDefinition()
-    elif command == 'GoToDeclaration':
-      self._GoToDefinition()
-    elif command == 'GoToDefinitionElseDeclaration':
+    elif command in [ 'GoToDefinition',
+                      'GoToDeclaration',
+                      'GoToDefinitionElseDeclaration' ]:
       self._GoToDefinition()