Skip to content

Commit

Permalink
remove structs and fix except
Browse files Browse the repository at this point in the history
  • Loading branch information
yeger00 committed Dec 21, 2023
1 parent e5ed6c5 commit 70fc3d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 82 deletions.
2 changes: 1 addition & 1 deletion pylspclient/lsp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def documentSymbol(self, textDocument: TextDocumentIdentifier) -> list[DocumentS
result_dict = self.lsp_endpoint.call_method("textDocument/documentSymbol", textDocument=textDocument.dict())
try:
return [DocumentSymbol.parse_obj(sym) for sym in result_dict]
except:
except ValidationError:
return [SymbolInformation.parse_obj(sym) for sym in result_dict]


Expand Down
81 changes: 0 additions & 81 deletions pylspclient/lsp_structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,87 +216,6 @@ def __init__(self, textDocument, position):
self.position = position


class LANGUAGE_IDENTIFIER(object):
BAT="bat"
BIBTEX="bibtex"
CLOJURE="clojure"
COFFESCRIPT="coffeescript"
C="c"
CPP="cpp"
CSHARP="csharp"
CSS="css"
DIFF="diff"
DOCKERFILE="dockerfile"
FSHARP="fsharp"
GIT_COMMIT="git-commit"
GIT_REBASE="git-rebase"
GO="go"
GROOVY="groovy"
HANDLEBARS="handlebars"
HTML="html"
INI="ini"
JAVA="java"
JAVASCRIPT="javascript"
JSON="json"
LATEX="latex"
LESS="less"
LUA="lua"
MAKEFILE="makefile"
MARKDOWN="markdown"
OBJECTIVE_C="objective-c"
OBJECTIVE_CPP="objective-cpp"
Perl="perl"
PHP="php"
POWERSHELL="powershell"
PUG="jade"
PYTHON="python"
R="r"
RAZOR="razor"
RUBY="ruby"
RUST="rust"
SASS="sass"
SCSS="scss"
ShaderLab="shaderlab"
SHELL_SCRIPT="shellscript"
SQL="sql"
SWIFT="swift"
TYPE_SCRIPT="typescript"
TEX="tex"
VB="vb"
XML="xml"
XSL="xsl"
YAML="yaml"


class SymbolKind(enum.Enum):
File = 1
Module = 2
Namespace = 3
Package = 4
Class = 5
Method = 6
Property = 7
Field = 8
Constructor = 9
Enum = 10
Interface = 11
Function = 12
Variable = 13
Constant = 14
String = 15
Number = 16
Boolean = 17
Array = 18
Object = 19
Key = 20
Null = 21
EnumMember = 22
Struct = 23
Event = 24
Operator = 25
TypeParameter = 26


class ParameterInformation(object):
"""
Represents a parameter of a callable-signature. A parameter can
Expand Down

0 comments on commit 70fc3d8

Please sign in to comment.