@jupyterlab/lsp 4.0.0-alpha.19 → 4.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/schema.ts ADDED
@@ -0,0 +1,238 @@
1
+ // Copyright (c) Jupyter Development Team.
2
+ // Distributed under the terms of the Modified BSD License.
3
+
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * This file was automatically generated by json-schema-to-typescript.
8
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
9
+ * and run jlpm build:schema to regenerate this file.
10
+ */
11
+
12
+ /**
13
+ * which version of the spec this implements
14
+ *
15
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
16
+ * via the `definition` "current-version".
17
+ */
18
+ export type SpecSchemaVersion = 2;
19
+ /**
20
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
21
+ * via the `definition` "env-var".
22
+ *
23
+ * This interface was referenced by `EnvironmentVariables`'s JSON-Schema definition
24
+ * via the `patternProperty` "[^ ]+".
25
+ */
26
+ export type AnEnvironmentVariableMayContainPythonStringTemplateEvaluatedAgainstTheExistingEnvironmentEG$HOME =
27
+ string;
28
+ /**
29
+ * the install commands or description for installing the language server
30
+ *
31
+ * This interface was referenced by `Installation`'s JSON-Schema definition
32
+ * via the `patternProperty` ".+".
33
+ *
34
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
35
+ * via the `definition` "install-help".
36
+ *
37
+ * This interface was referenced by `Installation1`'s JSON-Schema definition
38
+ * via the `patternProperty` ".+".
39
+ */
40
+ export type InstallHelp = string;
41
+ /**
42
+ * languages supported by this Language Server
43
+ *
44
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
45
+ * via the `definition` "language-list".
46
+ */
47
+ export type LanguageList = [string, ...string[]];
48
+ /**
49
+ * a description of a language server that could be started
50
+ *
51
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
52
+ * via the `definition` "language-server-spec".
53
+ *
54
+ * This interface was referenced by `LanguageServerSpecsMap`'s JSON-Schema definition
55
+ * via the `patternProperty` ".*".
56
+ */
57
+ export type LanguageServerSpec = ServerSpecProperties & {
58
+ [k: string]: any;
59
+ };
60
+ /**
61
+ * the arguments to start the language server normally
62
+ */
63
+ export type LaunchArguments = string[];
64
+ /**
65
+ * the arguments to start the language server with more verbose output
66
+ */
67
+ export type DebugArguments = string[];
68
+ /**
69
+ * name shown in the UI
70
+ */
71
+ export type DisplayName = string;
72
+ /**
73
+ * known extensions that can contribute to the Language Server's features
74
+ */
75
+ export type Extensions = LanguageServerExtension[];
76
+ /**
77
+ * list of MIME types supported by the language server
78
+ */
79
+ export type MIMETypes = [string, ...string[]];
80
+ /**
81
+ * information on troubleshooting the installation or auto-detection of the language server
82
+ */
83
+ export type Troubleshooting = string;
84
+ /**
85
+ * a date/time that might not have been recorded
86
+ *
87
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
88
+ * via the `definition` "nullable-date-time".
89
+ */
90
+ export type NullableDateTime = string | null;
91
+ /**
92
+ * the count of currently-connected WebSocket handlers
93
+ */
94
+ export type HandlerCount = number;
95
+ /**
96
+ * a list of tokens for running a command
97
+ *
98
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
99
+ * via the `definition` "shell-args".
100
+ */
101
+ export type ShellArgs = string[];
102
+
103
+ /**
104
+ * describes the current state of (potentially) running language servers
105
+ */
106
+ export interface JupyterLspServerStatusResponse {
107
+ [k: string]: any;
108
+ }
109
+ /**
110
+ * a JSON schema to configure the Language Server or extension behavior from the client
111
+ *
112
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
113
+ * via the `definition` "client-config-schema".
114
+ */
115
+ export interface ClientConfigurationSchema {
116
+ [k: string]: any;
117
+ }
118
+ /**
119
+ * a list of installation approaches keyed by package manager, e.g. pip, npm, yarn, apt
120
+ *
121
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
122
+ * via the `definition` "install-bundle".
123
+ */
124
+ export interface Installation {
125
+ [k: string]: InstallHelp;
126
+ }
127
+ /**
128
+ * an extension which can extend the functionality of the language server and client
129
+ *
130
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
131
+ * via the `definition` "language-server-extension".
132
+ */
133
+ export interface LanguageServerExtension {
134
+ config_schema?: ClientConfigurationSchema;
135
+ display_name?: string;
136
+ install?: Installation;
137
+ [k: string]: any;
138
+ }
139
+ /**
140
+ * all properties that might be required to start and/or describe a Language Server
141
+ *
142
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
143
+ * via the `definition` "partial-language-server-spec".
144
+ */
145
+ export interface ServerSpecProperties {
146
+ argv?: LaunchArguments;
147
+ config_schema?: ClientConfigurationSchema1;
148
+ debug_argv?: DebugArguments;
149
+ display_name?: DisplayName;
150
+ env?: EnvironmentVariables;
151
+ extend?: Extensions;
152
+ install?: Installation1;
153
+ languages?: LanguageList;
154
+ mime_types?: MIMETypes;
155
+ troubleshoot?: Troubleshooting;
156
+ urls?: URLs;
157
+ version?: SpecSchemaVersion;
158
+ [k: string]: any;
159
+ }
160
+ /**
161
+ * a JSON schema to configure the Language Server behavior from the client
162
+ */
163
+ export interface ClientConfigurationSchema1 {
164
+ [k: string]: any;
165
+ }
166
+ /**
167
+ * additional environment variables to set when starting the language server
168
+ */
169
+ export interface EnvironmentVariables {
170
+ [
171
+ k: string
172
+ ]: AnEnvironmentVariableMayContainPythonStringTemplateEvaluatedAgainstTheExistingEnvironmentEG$HOME;
173
+ }
174
+ /**
175
+ * a list of installation approaches keyed by package manager, e.g. pip, npm, yarn, apt
176
+ */
177
+ export interface Installation1 {
178
+ [k: string]: InstallHelp;
179
+ }
180
+ /**
181
+ * a collection of urls keyed by type, e.g. home, issues
182
+ */
183
+ export interface URLs {
184
+ [k: string]: string;
185
+ }
186
+ /**
187
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
188
+ * via the `definition` "servers-response".
189
+ */
190
+ export interface ServersResponse {
191
+ sessions: Sessions;
192
+ specs?: LanguageServerSpecsMap;
193
+ version: SpecSchemaVersion;
194
+ [k: string]: any;
195
+ }
196
+ /**
197
+ * named server sessions that are, could be, or were running
198
+ *
199
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
200
+ * via the `definition` "sessions".
201
+ */
202
+ export interface Sessions {
203
+ [k: string]: LanguageServerSession;
204
+ }
205
+ /**
206
+ * a language server session
207
+ *
208
+ * This interface was referenced by `Sessions`'s JSON-Schema definition
209
+ * via the `patternProperty` ".*".
210
+ *
211
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
212
+ * via the `definition` "session".
213
+ */
214
+ export interface LanguageServerSession {
215
+ handler_count: HandlerCount;
216
+ /**
217
+ * date-time of last seen message from a WebSocket handler
218
+ */
219
+ last_handler_message_at: string | null;
220
+ /**
221
+ * date-time of last seen message from the language server
222
+ */
223
+ last_server_message_at: string | null;
224
+ spec: ServerSpecProperties;
225
+ /**
226
+ * a string describing the current state of the server
227
+ */
228
+ status: 'not_started' | 'starting' | 'started' | 'stopping' | 'stopped';
229
+ }
230
+ /**
231
+ * a set of language servers keyed by their implementation name
232
+ *
233
+ * This interface was referenced by `JupyterLspServerStatusResponse`'s JSON-Schema
234
+ * via the `definition` "language-server-specs-implementation-map".
235
+ */
236
+ export interface LanguageServerSpecsMap {
237
+ [k: string]: LanguageServerSpec;
238
+ }