1 | import type { integer } from 'vscode-languageserver-types';
|
2 | export * from 'vscode-jsonrpc';
|
3 | export * from 'vscode-languageserver-types';
|
4 | export * from './messages';
|
5 | export * from './protocol';
|
6 | export { ProtocolConnection, createProtocolConnection } from './connection';
|
7 | export declare namespace LSPErrorCodes {
|
8 | /**
|
9 | * This is the start range of LSP reserved error codes.
|
10 | * It doesn't denote a real error code.
|
11 | *
|
12 | * @since 3.16.0
|
13 | */
|
14 | const lspReservedErrorRangeStart: integer;
|
15 | /**
|
16 | * A request failed but it was syntactically correct, e.g the
|
17 | * method name was known and the parameters were valid. The error
|
18 | * message should contain human readable information about why
|
19 | * the request failed.
|
20 | *
|
21 | * @since 3.17.0
|
22 | */
|
23 | const RequestFailed: integer;
|
24 | /**
|
25 | * The server cancelled the request. This error code should
|
26 | * only be used for requests that explicitly support being
|
27 | * server cancellable.
|
28 | *
|
29 | * @since 3.17.0
|
30 | */
|
31 | const ServerCancelled: integer;
|
32 | /**
|
33 | * The server detected that the content of a document got
|
34 | * modified outside normal conditions. A server should
|
35 | * NOT send this error code if it detects a content change
|
36 | * in it unprocessed messages. The result even computed
|
37 | * on an older state might still be useful for the client.
|
38 | *
|
39 | * If a client decides that a result is not of any use anymore
|
40 | * the client should cancel the request.
|
41 | */
|
42 | const ContentModified: integer;
|
43 | /**
|
44 | * The client has canceled a request and a server as detected
|
45 | * the cancel.
|
46 | */
|
47 | const RequestCancelled: integer;
|
48 | /**
|
49 | * This is the end range of LSP reserved error codes.
|
50 | * It doesn't denote a real error code.
|
51 | *
|
52 | * @since 3.16.0
|
53 | */
|
54 | const lspReservedErrorRangeEnd: integer;
|
55 | }
|
56 | export type LSPErrorCodes = integer;
|
57 | export declare namespace Proposed {
|
58 | }
|