monaco-languageclient 0.17.0 → 0.18.0

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.
Files changed (95) hide show
  1. package/dist/amd/connection.d.ts +52 -50
  2. package/dist/amd/connection.d.ts.map +1 -1
  3. package/dist/amd/connection.js +48 -37
  4. package/dist/amd/connection.js.map +1 -1
  5. package/dist/amd/console-window.d.ts +6 -6
  6. package/dist/amd/console-window.js +48 -48
  7. package/dist/amd/disposable.d.ts +7 -7
  8. package/dist/amd/disposable.js +29 -29
  9. package/dist/amd/index.d.ts +10 -10
  10. package/dist/amd/index.js +32 -28
  11. package/dist/amd/index.js.map +1 -1
  12. package/dist/amd/monaco-commands.d.ts +7 -7
  13. package/dist/amd/monaco-commands.js +14 -14
  14. package/dist/amd/monaco-converter.d.ts +213 -213
  15. package/dist/amd/monaco-converter.js +1107 -1107
  16. package/dist/amd/monaco-diagnostic-collection.d.ts +31 -31
  17. package/dist/amd/monaco-diagnostic-collection.js +75 -75
  18. package/dist/amd/monaco-language-client.d.ts +21 -21
  19. package/dist/amd/monaco-language-client.d.ts.map +1 -1
  20. package/dist/amd/monaco-language-client.js +102 -97
  21. package/dist/amd/monaco-language-client.js.map +1 -1
  22. package/dist/amd/monaco-languages.d.ts +62 -64
  23. package/dist/amd/monaco-languages.d.ts.map +1 -1
  24. package/dist/amd/monaco-languages.js +405 -572
  25. package/dist/amd/monaco-languages.js.map +1 -1
  26. package/dist/amd/monaco-services.d.ts +21 -21
  27. package/dist/amd/monaco-services.js +29 -29
  28. package/dist/amd/monaco-workspace.d.ts +25 -25
  29. package/dist/amd/monaco-workspace.d.ts.map +1 -1
  30. package/dist/amd/monaco-workspace.js +116 -114
  31. package/dist/amd/monaco-workspace.js.map +1 -1
  32. package/dist/amd/register-vscode.d.ts +1 -1
  33. package/dist/amd/register-vscode.js +14 -14
  34. package/dist/amd/services.d.ts +221 -213
  35. package/dist/amd/services.d.ts.map +1 -1
  36. package/dist/amd/services.js +89 -79
  37. package/dist/amd/services.js.map +1 -1
  38. package/dist/amd/vscode-api.d.ts +3 -3
  39. package/dist/amd/vscode-api.d.ts.map +1 -1
  40. package/dist/amd/vscode-api.js +950 -922
  41. package/dist/amd/vscode-api.js.map +1 -1
  42. package/dist/amd/vscode-compatibility.d.ts +5 -5
  43. package/dist/amd/vscode-compatibility.js +4 -4
  44. package/dist/amd/vscode-compatibility.js.map +1 -1
  45. package/lib/connection.d.ts +52 -50
  46. package/lib/connection.d.ts.map +1 -1
  47. package/lib/connection.js +48 -37
  48. package/lib/connection.js.map +1 -1
  49. package/lib/console-window.d.ts +6 -6
  50. package/lib/console-window.js +51 -51
  51. package/lib/disposable.d.ts +7 -7
  52. package/lib/disposable.js +32 -32
  53. package/lib/index.d.ts +10 -10
  54. package/lib/index.js +30 -26
  55. package/lib/index.js.map +1 -1
  56. package/lib/monaco-commands.d.ts +7 -7
  57. package/lib/monaco-commands.js +12 -12
  58. package/lib/monaco-converter.d.ts +213 -213
  59. package/lib/monaco-converter.js +1108 -1108
  60. package/lib/monaco-diagnostic-collection.d.ts +31 -31
  61. package/lib/monaco-diagnostic-collection.js +74 -74
  62. package/lib/monaco-language-client.d.ts +21 -21
  63. package/lib/monaco-language-client.d.ts.map +1 -1
  64. package/lib/monaco-language-client.js +115 -109
  65. package/lib/monaco-language-client.js.map +1 -1
  66. package/lib/monaco-languages.d.ts +62 -64
  67. package/lib/monaco-languages.d.ts.map +1 -1
  68. package/lib/monaco-languages.js +406 -574
  69. package/lib/monaco-languages.js.map +1 -1
  70. package/lib/monaco-services.d.ts +21 -21
  71. package/lib/monaco-services.js +33 -33
  72. package/lib/monaco-workspace.d.ts +25 -25
  73. package/lib/monaco-workspace.d.ts.map +1 -1
  74. package/lib/monaco-workspace.js +116 -114
  75. package/lib/monaco-workspace.js.map +1 -1
  76. package/lib/register-vscode.d.ts +1 -1
  77. package/lib/register-vscode.js +13 -13
  78. package/lib/services.d.ts +221 -213
  79. package/lib/services.d.ts.map +1 -1
  80. package/lib/services.js +90 -80
  81. package/lib/services.js.map +1 -1
  82. package/lib/vscode-api.d.ts +3 -3
  83. package/lib/vscode-api.d.ts.map +1 -1
  84. package/lib/vscode-api.js +954 -926
  85. package/lib/vscode-api.js.map +1 -1
  86. package/lib/vscode-compatibility.d.ts +5 -5
  87. package/lib/vscode-compatibility.js +8 -8
  88. package/lib/vscode-compatibility.js.map +1 -1
  89. package/package.json +3 -6
  90. package/src/connection.ts +36 -30
  91. package/src/monaco-language-client.ts +2 -0
  92. package/src/monaco-languages.ts +62 -229
  93. package/src/monaco-workspace.ts +3 -1
  94. package/src/services.ts +9 -0
  95. package/src/vscode-api.ts +49 -21
@@ -1,51 +1,53 @@
1
- import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature } from 'vscode-jsonrpc';
2
- import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, DidChangeWatchedFilesParams, PublishDiagnosticsParams } from 'vscode-languageserver-protocol';
3
- import { OutputChannel } from "./services";
4
- export interface IConnection {
5
- listen(): void;
6
- sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Thenable<R>;
7
- sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P, token?: CancellationToken): Thenable<R>;
8
- sendRequest<R>(method: string, token?: CancellationToken): Thenable<R>;
9
- sendRequest<R>(method: string, param: any, token?: CancellationToken): Thenable<R>;
10
- sendRequest<R>(type: string | MessageSignature, ...params: any[]): Thenable<R>;
11
- onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): void;
12
- onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): void;
13
- onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): void;
14
- onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): void;
15
- sendNotification<RO>(type: NotificationType0): void;
16
- sendNotification<P>(type: NotificationType<P>, params?: P): void;
17
- sendNotification(method: string): void;
18
- sendNotification(method: string, params: any): void;
19
- sendNotification(method: string | MessageSignature, params?: any): void;
20
- onNotification<RO>(type: NotificationType0, handler: NotificationHandler0): void;
21
- onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): void;
22
- onNotification(method: string, handler: GenericNotificationHandler): void;
23
- onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): void;
24
- trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
25
- initialize(params: InitializeParams): Thenable<InitializeResult>;
26
- shutdown(): Thenable<void>;
27
- exit(): void;
28
- onLogMessage(handle: NotificationHandler<LogMessageParams>): void;
29
- onShowMessage(handler: NotificationHandler<ShowMessageParams>): void;
30
- onTelemetry(handler: NotificationHandler<any>): void;
31
- didChangeConfiguration(params: DidChangeConfigurationParams): void;
32
- didChangeWatchedFiles(params: DidChangeWatchedFilesParams): void;
33
- didOpenTextDocument(params: DidOpenTextDocumentParams): void;
34
- didChangeTextDocument(params: DidChangeTextDocumentParams): void;
35
- didCloseTextDocument(params: DidCloseTextDocumentParams): void;
36
- didSaveTextDocument(params: DidSaveTextDocumentParams): void;
37
- onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
38
- dispose(): void;
39
- end(): void;
40
- }
41
- export interface ConnectionErrorHandler {
42
- (error: Error, message: Message | undefined, count: number | undefined): void;
43
- }
44
- export interface ConnectionCloseHandler {
45
- (): void;
46
- }
47
- export interface IConnectionProvider {
48
- get(errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler, outputChannel: OutputChannel | undefined): Thenable<IConnection>;
49
- }
50
- export declare function createConnection(connection: MessageConnection, errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler): IConnection;
1
+ import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable, ProgressType } from 'vscode-jsonrpc';
2
+ import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, DidChangeWatchedFilesParams, PublishDiagnosticsParams } from 'vscode-languageserver-protocol';
3
+ import { OutputChannel } from "./services";
4
+ export interface IConnection {
5
+ listen(): void;
6
+ sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Thenable<R>;
7
+ sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P, token?: CancellationToken): Thenable<R>;
8
+ sendRequest<R>(method: string, token?: CancellationToken): Thenable<R>;
9
+ sendRequest<R>(method: string, param: any, token?: CancellationToken): Thenable<R>;
10
+ sendRequest<R>(type: string | MessageSignature, ...params: any[]): Thenable<R>;
11
+ onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
12
+ onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
13
+ onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
14
+ onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): Disposable;
15
+ sendNotification(type: NotificationType0): Thenable<void>;
16
+ sendNotification<P>(type: NotificationType<P>, params?: P): Thenable<void>;
17
+ sendNotification(method: string): Thenable<void>;
18
+ sendNotification(method: string, params: any): Thenable<void>;
19
+ sendNotification(method: string | MessageSignature, params?: any): Thenable<void>;
20
+ onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
21
+ onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
22
+ onNotification(method: string, handler: GenericNotificationHandler): Disposable;
23
+ onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): Disposable;
24
+ onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
25
+ sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Thenable<void>;
26
+ trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
27
+ initialize(params: InitializeParams): Thenable<InitializeResult>;
28
+ shutdown(): Thenable<void>;
29
+ exit(): Thenable<void>;
30
+ onLogMessage(handle: NotificationHandler<LogMessageParams>): void;
31
+ onShowMessage(handler: NotificationHandler<ShowMessageParams>): void;
32
+ onTelemetry(handler: NotificationHandler<any>): void;
33
+ didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
34
+ didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
35
+ didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
36
+ didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
37
+ didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
38
+ didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
39
+ onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
40
+ end(): void;
41
+ dispose(): void;
42
+ }
43
+ export interface ConnectionErrorHandler {
44
+ (error: Error, message: Message | undefined, count: number | undefined): void;
45
+ }
46
+ export interface ConnectionCloseHandler {
47
+ (): void;
48
+ }
49
+ export interface IConnectionProvider {
50
+ get(errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler, outputChannel: OutputChannel | undefined): Thenable<IConnection>;
51
+ }
52
+ export declare function createConnection(connection: MessageConnection, errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler): IConnection;
51
53
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,OAAO,EACP,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,EACjF,gBA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OAAO,IAAI,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACnC,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACjF;AACD,MAAM,WAAW,sBAAsB;IACnC,IAAI,IAAI,CAAC;CACZ;AACD,MAAM,WAAW,mBAAmB;IAChC,GAAG,CAAC,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;CACpJ;AACD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,sBAAsB,GAAG,WAAW,CAuCvJ"}
@@ -1,38 +1,49 @@
1
- define(["require", "exports", "vscode-languageserver-protocol", "vscode-languageserver-protocol/lib/common/utils/is"], function (require, exports, vscode_languageserver_protocol_1, Is) {
2
- /* --------------------------------------------------------------------------------------------
3
- * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- * ------------------------------------------------------------------------------------------ */
6
- 'use strict';
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.createConnection = void 0;
9
- function createConnection(connection, errorHandler, closeHandler) {
10
- connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
11
- connection.onClose(closeHandler);
12
- return {
13
- listen: () => connection.listen(),
14
- sendRequest: (type, ...params) => connection.sendRequest(Is.string(type) ? type : type.method, ...params),
15
- onRequest: (type, handler) => connection.onRequest(Is.string(type) ? type : type.method, handler),
16
- sendNotification: (type, params) => connection.sendNotification(Is.string(type) ? type : type.method, params),
17
- onNotification: (type, handler) => connection.onNotification(Is.string(type) ? type : type.method, handler),
18
- trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
19
- initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, params),
20
- shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1.ShutdownRequest.type, undefined),
21
- exit: () => connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type),
22
- onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, handler),
23
- onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.ShowMessageNotification.type, handler),
24
- onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1.TelemetryEventNotification.type, handler),
25
- didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params),
26
- didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params),
27
- didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params),
28
- didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params),
29
- didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params),
30
- didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params),
31
- onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1.PublishDiagnosticsNotification.type, handler),
32
- dispose: () => connection.dispose(),
33
- end: () => connection.end()
34
- };
35
- }
36
- exports.createConnection = createConnection;
37
- });
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ define(["require", "exports", "vscode-languageserver-protocol", "vscode-languageserver-protocol/lib/common/utils/is"], function (require, exports, vscode_languageserver_protocol_1, Is) {
11
+ /* --------------------------------------------------------------------------------------------
12
+ * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
13
+ * Licensed under the MIT License. See License.txt in the project root for license information.
14
+ * ------------------------------------------------------------------------------------------ */
15
+ 'use strict';
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createConnection = void 0;
18
+ function createConnection(connection, errorHandler, closeHandler) {
19
+ connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
20
+ connection.onClose(closeHandler);
21
+ return {
22
+ listen: () => connection.listen(),
23
+ sendRequest: (type, ...params) => connection.sendRequest(Is.string(type) ? type : type.method, ...params),
24
+ onRequest: (type, handler) => connection.onRequest(Is.string(type) ? type : type.method, handler),
25
+ sendNotification: (type, params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(Is.string(type) ? type : type.method, params); }),
26
+ onNotification: (type, handler) => connection.onNotification(Is.string(type) ? type : type.method, handler),
27
+ onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
28
+ sendProgress: (type, token, value) => __awaiter(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
29
+ trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
30
+ initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, params),
31
+ shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1.ShutdownRequest.type, undefined),
32
+ exit: () => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type); }),
33
+ onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, handler),
34
+ onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.ShowMessageNotification.type, handler),
35
+ onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1.TelemetryEventNotification.type, handler),
36
+ didChangeConfiguration: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params); }),
37
+ didChangeWatchedFiles: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params); }),
38
+ didOpenTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params); }),
39
+ didChangeTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params); }),
40
+ didCloseTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params); }),
41
+ didSaveTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params); }),
42
+ onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1.PublishDiagnosticsNotification.type, handler),
43
+ dispose: () => connection.dispose(),
44
+ end: () => connection.end()
45
+ };
46
+ }
47
+ exports.createConnection = createConnection;
48
+ });
38
49
  //# sourceMappingURL=connection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":";IAAA;;;oGAGgG;IAChG,YAAY,CAAC;;;IAuFb,SAAgB,gBAAgB,CAAC,UAA6B,EAAE,YAAoC,EAAE,YAAoC;QACtI,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;QAC1E,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AAC,UAAU,CAAC,GAAG,EAAE;SAC9B,CAAC;IACN,CAAC;IAvCD,4CAuCC"}
@@ -1,7 +1,7 @@
1
- import { MessageActionItem, MessageType, Window, OutputChannel } from './services';
2
- export declare class ConsoleWindow implements Window {
3
- protected readonly channels: Map<string, OutputChannel>;
4
- showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): Thenable<T | undefined>;
5
- createOutputChannel(name: string): OutputChannel;
6
- }
1
+ import { MessageActionItem, MessageType, Window, OutputChannel } from './services';
2
+ export declare class ConsoleWindow implements Window {
3
+ protected readonly channels: Map<string, OutputChannel>;
4
+ showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): Thenable<T | undefined>;
5
+ createOutputChannel(name: string): OutputChannel;
6
+ }
7
7
  //# sourceMappingURL=console-window.d.ts.map
@@ -1,49 +1,49 @@
1
- define(["require", "exports", "./services"], function (require, exports, services_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ConsoleWindow = void 0;
5
- class ConsoleWindow {
6
- constructor() {
7
- this.channels = new Map();
8
- }
9
- showMessage(type, message, ...actions) {
10
- if (type === services_1.MessageType.Error) {
11
- console.error(message);
12
- }
13
- if (type === services_1.MessageType.Warning) {
14
- console.warn(message);
15
- }
16
- if (type === services_1.MessageType.Info) {
17
- console.info(message);
18
- }
19
- if (type === services_1.MessageType.Log) {
20
- console.log(message);
21
- }
22
- return Promise.resolve(undefined);
23
- }
24
- createOutputChannel(name) {
25
- const existing = this.channels.get(name);
26
- if (existing) {
27
- return existing;
28
- }
29
- const channel = {
30
- append(value) {
31
- console.log(name + ': ' + value);
32
- },
33
- appendLine(line) {
34
- console.log(name + ': ' + line);
35
- },
36
- show() {
37
- // no-op
38
- },
39
- dispose() {
40
- // no-op
41
- }
42
- };
43
- this.channels.set(name, channel);
44
- return channel;
45
- }
46
- }
47
- exports.ConsoleWindow = ConsoleWindow;
48
- });
1
+ define(["require", "exports", "./services"], function (require, exports, services_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConsoleWindow = void 0;
5
+ class ConsoleWindow {
6
+ constructor() {
7
+ this.channels = new Map();
8
+ }
9
+ showMessage(type, message, ...actions) {
10
+ if (type === services_1.MessageType.Error) {
11
+ console.error(message);
12
+ }
13
+ if (type === services_1.MessageType.Warning) {
14
+ console.warn(message);
15
+ }
16
+ if (type === services_1.MessageType.Info) {
17
+ console.info(message);
18
+ }
19
+ if (type === services_1.MessageType.Log) {
20
+ console.log(message);
21
+ }
22
+ return Promise.resolve(undefined);
23
+ }
24
+ createOutputChannel(name) {
25
+ const existing = this.channels.get(name);
26
+ if (existing) {
27
+ return existing;
28
+ }
29
+ const channel = {
30
+ append(value) {
31
+ console.log(name + ': ' + value);
32
+ },
33
+ appendLine(line) {
34
+ console.log(name + ': ' + line);
35
+ },
36
+ show() {
37
+ // no-op
38
+ },
39
+ dispose() {
40
+ // no-op
41
+ }
42
+ };
43
+ this.channels.set(name, channel);
44
+ return channel;
45
+ }
46
+ }
47
+ exports.ConsoleWindow = ConsoleWindow;
48
+ });
49
49
  //# sourceMappingURL=console-window.js.map
@@ -1,8 +1,8 @@
1
- import { Disposable } from './services';
2
- export { Disposable };
3
- export declare class DisposableCollection implements Disposable {
4
- protected readonly disposables: Disposable[];
5
- dispose(): void;
6
- push(disposable: Disposable): Disposable;
7
- }
1
+ import { Disposable } from './services';
2
+ export { Disposable };
3
+ export declare class DisposableCollection implements Disposable {
4
+ protected readonly disposables: Disposable[];
5
+ dispose(): void;
6
+ push(disposable: Disposable): Disposable;
7
+ }
8
8
  //# sourceMappingURL=disposable.d.ts.map
@@ -1,30 +1,30 @@
1
- define(["require", "exports", "./services"], function (require, exports, services_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DisposableCollection = exports.Disposable = void 0;
5
- Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return services_1.Disposable; } });
6
- class DisposableCollection {
7
- constructor() {
8
- this.disposables = [];
9
- }
10
- dispose() {
11
- while (this.disposables.length !== 0) {
12
- this.disposables.pop().dispose();
13
- }
14
- }
15
- push(disposable) {
16
- const disposables = this.disposables;
17
- disposables.push(disposable);
18
- return {
19
- dispose() {
20
- const index = disposables.indexOf(disposable);
21
- if (index !== -1) {
22
- disposables.splice(index, 1);
23
- }
24
- }
25
- };
26
- }
27
- }
28
- exports.DisposableCollection = DisposableCollection;
29
- });
1
+ define(["require", "exports", "./services"], function (require, exports, services_1) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DisposableCollection = exports.Disposable = void 0;
5
+ Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return services_1.Disposable; } });
6
+ class DisposableCollection {
7
+ constructor() {
8
+ this.disposables = [];
9
+ }
10
+ dispose() {
11
+ while (this.disposables.length !== 0) {
12
+ this.disposables.pop().dispose();
13
+ }
14
+ }
15
+ push(disposable) {
16
+ const disposables = this.disposables;
17
+ disposables.push(disposable);
18
+ return {
19
+ dispose() {
20
+ const index = disposables.indexOf(disposable);
21
+ if (index !== -1) {
22
+ disposables.splice(index, 1);
23
+ }
24
+ }
25
+ };
26
+ }
27
+ }
28
+ exports.DisposableCollection = DisposableCollection;
29
+ });
30
30
  //# sourceMappingURL=disposable.js.map
@@ -1,11 +1,11 @@
1
- export * from './disposable';
2
- export * from './services';
3
- export * from './connection';
4
- export * from './monaco-language-client';
5
- export * from './monaco-commands';
6
- export * from './console-window';
7
- export * from './monaco-languages';
8
- export * from './monaco-workspace';
9
- export * from './monaco-services';
10
- export * from './monaco-converter';
1
+ export * from './disposable';
2
+ export * from './services';
3
+ export * from './connection';
4
+ export * from './monaco-language-client';
5
+ export * from './monaco-commands';
6
+ export * from './console-window';
7
+ export * from './monaco-languages';
8
+ export * from './monaco-workspace';
9
+ export * from './monaco-services';
10
+ export * from './monaco-converter';
11
11
  //# sourceMappingURL=index.d.ts.map
package/dist/amd/index.js CHANGED
@@ -1,29 +1,33 @@
1
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
- if (k2 === undefined) k2 = k;
3
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
- }) : (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- o[k2] = m[k];
7
- }));
8
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
9
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
10
- };
11
- define(["require", "exports", "./disposable", "./services", "./connection", "./monaco-language-client", "./monaco-commands", "./console-window", "./monaco-languages", "./monaco-workspace", "./monaco-services", "./monaco-converter"], function (require, exports, disposable_1, services_1, connection_1, monaco_language_client_1, monaco_commands_1, console_window_1, monaco_languages_1, monaco_workspace_1, monaco_services_1, monaco_converter_1) {
12
- "use strict";
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- /* --------------------------------------------------------------------------------------------
15
- * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
16
- * Licensed under the MIT License. See License.txt in the project root for license information.
17
- * ------------------------------------------------------------------------------------------ */
18
- __exportStar(disposable_1, exports);
19
- __exportStar(services_1, exports);
20
- __exportStar(connection_1, exports);
21
- __exportStar(monaco_language_client_1, exports);
22
- __exportStar(monaco_commands_1, exports);
23
- __exportStar(console_window_1, exports);
24
- __exportStar(monaco_languages_1, exports);
25
- __exportStar(monaco_workspace_1, exports);
26
- __exportStar(monaco_services_1, exports);
27
- __exportStar(monaco_converter_1, exports);
28
- });
1
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
+ if (k2 === undefined) k2 = k;
3
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
+ desc = { enumerable: true, get: function() { return m[k]; } };
6
+ }
7
+ Object.defineProperty(o, k2, desc);
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
13
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
14
+ };
15
+ define(["require", "exports", "./disposable", "./services", "./connection", "./monaco-language-client", "./monaco-commands", "./console-window", "./monaco-languages", "./monaco-workspace", "./monaco-services", "./monaco-converter"], function (require, exports, disposable_1, services_1, connection_1, monaco_language_client_1, monaco_commands_1, console_window_1, monaco_languages_1, monaco_workspace_1, monaco_services_1, monaco_converter_1) {
16
+ "use strict";
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ /* --------------------------------------------------------------------------------------------
19
+ * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved.
20
+ * Licensed under the MIT License. See License.txt in the project root for license information.
21
+ * ------------------------------------------------------------------------------------------ */
22
+ __exportStar(disposable_1, exports);
23
+ __exportStar(services_1, exports);
24
+ __exportStar(connection_1, exports);
25
+ __exportStar(monaco_language_client_1, exports);
26
+ __exportStar(monaco_commands_1, exports);
27
+ __exportStar(console_window_1, exports);
28
+ __exportStar(monaco_languages_1, exports);
29
+ __exportStar(monaco_workspace_1, exports);
30
+ __exportStar(monaco_services_1, exports);
31
+ __exportStar(monaco_converter_1, exports);
32
+ });
29
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,oCAA6B;IAC7B,kCAA2B;IAC3B,oCAA6B;IAC7B,gDAAyC;IACzC,yCAAkC;IAClC,wCAAiC;IACjC,0CAAmC;IACnC,0CAAmC;IACnC,yCAAkC;IAClC,0CAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAAA;;;oGAGgG;IAChG,oCAA6B;IAC7B,kCAA2B;IAC3B,oCAA6B;IAC7B,gDAAyC;IACzC,yCAAkC;IAClC,wCAAiC;IACjC,0CAAmC;IACnC,0CAAmC;IACnC,yCAAkC;IAClC,0CAAmC"}
@@ -1,8 +1,8 @@
1
- import type * as monaco from 'monaco-editor-core';
2
- import { Commands, Disposable } from './services';
3
- export declare class MonacoCommands implements Commands {
4
- protected readonly _monaco: typeof monaco;
5
- constructor(_monaco: typeof monaco);
6
- registerCommand(command: string, callback: (...args: any[]) => any, thisArg?: any): Disposable;
7
- }
1
+ import type * as monaco from 'monaco-editor-core';
2
+ import { Commands, Disposable } from './services';
3
+ export declare class MonacoCommands implements Commands {
4
+ protected readonly _monaco: typeof monaco;
5
+ constructor(_monaco: typeof monaco);
6
+ registerCommand(command: string, callback: (...args: any[]) => any, thisArg?: any): Disposable;
7
+ }
8
8
  //# sourceMappingURL=monaco-commands.d.ts.map
@@ -1,15 +1,15 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MonacoCommands = void 0;
5
- class MonacoCommands {
6
- constructor(_monaco) {
7
- this._monaco = _monaco;
8
- }
9
- registerCommand(command, callback, thisArg) {
10
- return this._monaco.editor.registerCommand(command, (accessor, ...args) => callback.call(thisArg, ...args));
11
- }
12
- }
13
- exports.MonacoCommands = MonacoCommands;
14
- });
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MonacoCommands = void 0;
5
+ class MonacoCommands {
6
+ constructor(_monaco) {
7
+ this._monaco = _monaco;
8
+ }
9
+ registerCommand(command, callback, thisArg) {
10
+ return this._monaco.editor.registerCommand(command, (accessor, ...args) => callback.call(thisArg, ...args));
11
+ }
12
+ }
13
+ exports.MonacoCommands = MonacoCommands;
14
+ });
15
15
  //# sourceMappingURL=monaco-commands.js.map