-
Notifications
You must be signed in to change notification settings - Fork 194
/
hookspecs.py
135 lines (83 loc) · 2.49 KB
/
hookspecs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Copyright 2017-2020 Palantir Technologies, Inc.
# Copyright 2021- Python Language Server Contributors.
from pylsp import hookspec
@hookspec
def pylsp_code_actions(config, workspace, document, range, context):
pass
@hookspec
def pylsp_code_lens(config, workspace, document) -> None:
pass
@hookspec
def pylsp_commands(config, workspace) -> None:
"""The list of command strings supported by the server.
Returns:
List[str]: The supported commands.
"""
@hookspec
def pylsp_completions(config, workspace, document, position, ignored_names) -> None:
pass
@hookspec(firstresult=True)
def pylsp_completion_item_resolve(config, workspace, document, completion_item) -> None:
pass
@hookspec
def pylsp_definitions(config, workspace, document, position) -> None:
pass
@hookspec
def pylsp_dispatchers(config, workspace) -> None:
pass
@hookspec
def pylsp_document_did_open(config, workspace, document) -> None:
pass
@hookspec
def pylsp_document_did_save(config, workspace, document) -> None:
pass
@hookspec
def pylsp_document_highlight(config, workspace, document, position) -> None:
pass
@hookspec
def pylsp_document_symbols(config, workspace, document) -> None:
pass
@hookspec(firstresult=True)
def pylsp_execute_command(config, workspace, command, arguments) -> None:
pass
@hookspec
def pylsp_experimental_capabilities(config, workspace) -> None:
pass
@hookspec
def pylsp_folding_range(config, workspace, document) -> None:
pass
@hookspec(firstresult=True)
def pylsp_format_document(config, workspace, document, options) -> None:
pass
@hookspec(firstresult=True)
def pylsp_format_range(config, workspace, document, range, options) -> None:
pass
@hookspec(firstresult=True)
def pylsp_hover(config, workspace, document, position) -> None:
pass
@hookspec
def pylsp_initialize(config, workspace) -> None:
pass
@hookspec
def pylsp_initialized() -> None:
pass
@hookspec
def pylsp_lint(config, workspace, document, is_saved) -> None:
pass
@hookspec
def pylsp_references(
config, workspace, document, position, exclude_declaration
) -> None:
pass
@hookspec(firstresult=True)
def pylsp_rename(config, workspace, document, position, new_name) -> None:
pass
@hookspec
def pylsp_settings(config) -> None:
pass
@hookspec(firstresult=True)
def pylsp_signature_help(config, workspace, document, position) -> None:
pass
@hookspec
def pylsp_workspace_configuration_changed(config, workspace) -> None:
pass