@codingame/monaco-languageclient-wrapper 5.0.0-next.1 → 5.0.0-update-monaco.1

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 (173) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -4
  2. package/dist/_virtual/_rollupPluginBabelHelpers.js +29 -29
  3. package/dist/_virtual/main3.js +4 -2
  4. package/dist/_virtual/protocol.inlineCompletion.js +2 -0
  5. package/dist/extensions/java/extension.js +1 -1
  6. package/dist/extensions/java/inlayHintsProvider.js +3 -4
  7. package/dist/extensions/java/protocol.js +15 -16
  8. package/dist/extensions/java/sourceAction.js +1 -1
  9. package/dist/index.d.ts +132 -9212
  10. package/dist/node_modules/delay/index.js +1 -2
  11. package/dist/node_modules/vscode-jsonrpc/browser.js +1 -1
  12. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +1 -1
  13. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +1 -1
  14. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +84 -86
  15. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +19 -17
  16. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +11 -12
  17. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +112 -113
  18. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +1 -1
  19. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +378 -380
  20. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +1 -1
  21. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +186 -182
  22. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +110 -111
  23. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +231 -232
  24. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -1
  25. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +5 -4
  26. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -1
  27. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +41 -41
  28. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +22 -20
  29. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +16 -15
  30. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +10 -10
  31. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +10 -10
  32. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +41 -37
  33. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +45 -39
  34. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +16 -10
  35. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +10 -10
  36. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +22 -20
  37. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +13 -0
  38. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +16 -15
  39. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +141 -69
  40. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +10 -10
  41. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +24 -22
  42. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +186 -181
  43. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +26 -24
  44. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +10 -10
  45. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +40 -36
  46. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +10 -10
  47. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +10 -10
  48. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +22 -20
  49. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +16 -15
  50. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +1 -1
  51. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +363 -338
  52. package/dist/src/createLanguageClient.js +41 -16
  53. package/dist/src/extensions/cobol.js +3 -3
  54. package/dist/src/extensions/tools.js +5 -1
  55. package/dist/src/extensions.js +6 -3
  56. package/dist/src/infrastructure.js +17 -2
  57. package/dist/src/languageClient.js +10 -12
  58. package/package.json +56 -52
  59. package/stats.html +32 -28
  60. package/dist/_virtual/_vscode.js +0 -4
  61. package/dist/_virtual/api3.js +0 -2
  62. package/dist/_virtual/async.js +0 -2
  63. package/dist/_virtual/callHierarchy.js +0 -2
  64. package/dist/_virtual/client.js +0 -2
  65. package/dist/_virtual/codeAction.js +0 -2
  66. package/dist/_virtual/codeConverter.js +0 -2
  67. package/dist/_virtual/codeLens.js +0 -2
  68. package/dist/_virtual/colorProvider.js +0 -2
  69. package/dist/_virtual/completion.js +0 -2
  70. package/dist/_virtual/configuration.js +0 -2
  71. package/dist/_virtual/declaration.js +0 -2
  72. package/dist/_virtual/definition.js +0 -2
  73. package/dist/_virtual/diagnostic.js +0 -2
  74. package/dist/_virtual/documentHighlight.js +0 -2
  75. package/dist/_virtual/documentLink.js +0 -2
  76. package/dist/_virtual/documentSymbol.js +0 -2
  77. package/dist/_virtual/executeCommand.js +0 -2
  78. package/dist/_virtual/features.js +0 -2
  79. package/dist/_virtual/fileOperations.js +0 -2
  80. package/dist/_virtual/fileSystemWatcher.js +0 -2
  81. package/dist/_virtual/foldingRange.js +0 -2
  82. package/dist/_virtual/formatting.js +0 -2
  83. package/dist/_virtual/hover.js +0 -2
  84. package/dist/_virtual/implementation.js +0 -2
  85. package/dist/_virtual/inlayHint.js +0 -2
  86. package/dist/_virtual/inlineValue.js +0 -2
  87. package/dist/_virtual/is3.js +0 -2
  88. package/dist/_virtual/linkedEditingRange.js +0 -2
  89. package/dist/_virtual/main4.js +0 -4
  90. package/dist/_virtual/notebook.js +0 -2
  91. package/dist/_virtual/path.js +0 -4
  92. package/dist/_virtual/progress.js +0 -2
  93. package/dist/_virtual/progressPart.js +0 -2
  94. package/dist/_virtual/protocolCallHierarchyItem.js +0 -2
  95. package/dist/_virtual/protocolCodeAction.js +0 -2
  96. package/dist/_virtual/protocolCodeLens.js +0 -2
  97. package/dist/_virtual/protocolCompletionItem.js +0 -2
  98. package/dist/_virtual/protocolConverter.js +0 -2
  99. package/dist/_virtual/protocolDiagnostic.js +0 -2
  100. package/dist/_virtual/protocolDocumentLink.js +0 -2
  101. package/dist/_virtual/protocolInlayHint.js +0 -2
  102. package/dist/_virtual/protocolTypeHierarchyItem.js +0 -2
  103. package/dist/_virtual/protocolWorkspaceSymbol.js +0 -2
  104. package/dist/_virtual/reference.js +0 -2
  105. package/dist/_virtual/rename.js +0 -2
  106. package/dist/_virtual/selectionRange.js +0 -2
  107. package/dist/_virtual/semanticTokens.js +0 -2
  108. package/dist/_virtual/signatureHelp.js +0 -2
  109. package/dist/_virtual/textSynchronization.js +0 -2
  110. package/dist/_virtual/typeDefinition.js +0 -2
  111. package/dist/_virtual/typeHierarchy.js +0 -2
  112. package/dist/_virtual/uuid.js +0 -2
  113. package/dist/_virtual/workspaceFolder.js +0 -2
  114. package/dist/_virtual/workspaceSymbol.js +0 -2
  115. package/dist/node_modules/balanced-match/index.js +0 -52
  116. package/dist/node_modules/monaco-languageclient/lib/monaco-language-client.js +0 -127
  117. package/dist/node_modules/vscode-languageclient/lib/browser/main.js +0 -49
  118. package/dist/node_modules/vscode-languageclient/lib/common/api.js +0 -51
  119. package/dist/node_modules/vscode-languageclient/lib/common/callHierarchy.js +0 -98
  120. package/dist/node_modules/vscode-languageclient/lib/common/client.js +0 -1527
  121. package/dist/node_modules/vscode-languageclient/lib/common/codeAction.js +0 -92
  122. package/dist/node_modules/vscode-languageclient/lib/common/codeConverter.js +0 -881
  123. package/dist/node_modules/vscode-languageclient/lib/common/codeLens.js +0 -84
  124. package/dist/node_modules/vscode-languageclient/lib/common/colorProvider.js +0 -77
  125. package/dist/node_modules/vscode-languageclient/lib/common/completion.js +0 -105
  126. package/dist/node_modules/vscode-languageclient/lib/common/configuration.js +0 -214
  127. package/dist/node_modules/vscode-languageclient/lib/common/declaration.js +0 -59
  128. package/dist/node_modules/vscode-languageclient/lib/common/definition.js +0 -62
  129. package/dist/node_modules/vscode-languageclient/lib/common/diagnostic.js +0 -839
  130. package/dist/node_modules/vscode-languageclient/lib/common/documentHighlight.js +0 -57
  131. package/dist/node_modules/vscode-languageclient/lib/common/documentLink.js +0 -74
  132. package/dist/node_modules/vscode-languageclient/lib/common/documentSymbol.js +0 -82
  133. package/dist/node_modules/vscode-languageclient/lib/common/executeCommand.js +0 -83
  134. package/dist/node_modules/vscode-languageclient/lib/common/features.js +0 -310
  135. package/dist/node_modules/vscode-languageclient/lib/common/fileOperations.js +0 -319
  136. package/dist/node_modules/vscode-languageclient/lib/common/fileSystemWatcher.js +0 -104
  137. package/dist/node_modules/vscode-languageclient/lib/common/foldingRange.js +0 -66
  138. package/dist/node_modules/vscode-languageclient/lib/common/formatting.js +0 -165
  139. package/dist/node_modules/vscode-languageclient/lib/common/hover.js +0 -62
  140. package/dist/node_modules/vscode-languageclient/lib/common/implementation.js +0 -59
  141. package/dist/node_modules/vscode-languageclient/lib/common/inlayHint.js +0 -94
  142. package/dist/node_modules/vscode-languageclient/lib/common/inlineValue.js +0 -73
  143. package/dist/node_modules/vscode-languageclient/lib/common/linkedEditingRange.js +0 -58
  144. package/dist/node_modules/vscode-languageclient/lib/common/notebook.js +0 -858
  145. package/dist/node_modules/vscode-languageclient/lib/common/progress.js +0 -51
  146. package/dist/node_modules/vscode-languageclient/lib/common/progressPart.js +0 -107
  147. package/dist/node_modules/vscode-languageclient/lib/common/protocolCallHierarchyItem.js +0 -15
  148. package/dist/node_modules/vscode-languageclient/lib/common/protocolCodeAction.js +0 -13
  149. package/dist/node_modules/vscode-languageclient/lib/common/protocolCodeLens.js +0 -12
  150. package/dist/node_modules/vscode-languageclient/lib/common/protocolCompletionItem.js +0 -12
  151. package/dist/node_modules/vscode-languageclient/lib/common/protocolConverter.js +0 -1129
  152. package/dist/node_modules/vscode-languageclient/lib/common/protocolDiagnostic.js +0 -27
  153. package/dist/node_modules/vscode-languageclient/lib/common/protocolDocumentLink.js +0 -12
  154. package/dist/node_modules/vscode-languageclient/lib/common/protocolInlayHint.js +0 -12
  155. package/dist/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.js +0 -15
  156. package/dist/node_modules/vscode-languageclient/lib/common/protocolWorkspaceSymbol.js +0 -17
  157. package/dist/node_modules/vscode-languageclient/lib/common/reference.js +0 -60
  158. package/dist/node_modules/vscode-languageclient/lib/common/rename.js +0 -112
  159. package/dist/node_modules/vscode-languageclient/lib/common/selectionRange.js +0 -62
  160. package/dist/node_modules/vscode-languageclient/lib/common/semanticTokens.js +0 -144
  161. package/dist/node_modules/vscode-languageclient/lib/common/signatureHelp.js +0 -78
  162. package/dist/node_modules/vscode-languageclient/lib/common/textSynchronization.js +0 -422
  163. package/dist/node_modules/vscode-languageclient/lib/common/typeDefinition.js +0 -60
  164. package/dist/node_modules/vscode-languageclient/lib/common/typeHierarchy.js +0 -97
  165. package/dist/node_modules/vscode-languageclient/lib/common/utils/async.js +0 -269
  166. package/dist/node_modules/vscode-languageclient/lib/common/utils/is.js +0 -54
  167. package/dist/node_modules/vscode-languageclient/lib/common/utils/uuid.js +0 -51
  168. package/dist/node_modules/vscode-languageclient/lib/common/workspaceFolder.js +0 -154
  169. package/dist/node_modules/vscode-languageclient/lib/common/workspaceSymbol.js +0 -87
  170. package/dist/node_modules/vscode-languageclient/node_modules/brace-expansion/index.js +0 -160
  171. package/dist/node_modules/vscode-languageclient/node_modules/minimatch/lib/path.js +0 -2
  172. package/dist/node_modules/vscode-languageclient/node_modules/minimatch/minimatch.js +0 -567
  173. package/dist/node_modules/vscode-languageserver-protocol/browser.js +0 -4
@@ -42,5 +42,4 @@ function createDelay({clearTimeout: defaultClear, setTimeout: defaultSet} = {})
42
42
  };
43
43
  }
44
44
  const delay = createDelay();
45
- var delay$1 = delay;
46
- export { createDelay, delay$1 as default };
45
+ export { createDelay, delay as default };
@@ -1,4 +1,4 @@
1
- import { __exports as main } from '../../_virtual/main3.js';
1
+ import { __exports as main } from '../../_virtual/main2.js';
2
2
  import './lib/browser/main.js';
3
3
  var browser = main;
4
4
  export { browser as b };
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
2
- import { __exports as main } from '../../../../_virtual/main3.js';
2
+ import { __exports as main } from '../../../../_virtual/main2.js';
3
3
  import { __require as requireApi } from '../common/api.js';
4
4
  import { __exports as ril } from '../../../../_virtual/ril.js';
5
5
  import './ril.js';
@@ -1,4 +1,4 @@
1
- import { __exports as api } from '../../../../_virtual/api3.js';
1
+ import { __exports as api } from '../../../../_virtual/api2.js';
2
2
  import { __require as requireMessages } from './messages.js';
3
3
  import { __require as requireLinkedMap } from './linkedMap.js';
4
4
  import { __require as requireDisposable } from './disposable.js';
@@ -6,92 +6,90 @@ var hasRequiredCancellation;
6
6
  function requireCancellation () {
7
7
  if (hasRequiredCancellation) return cancellation;
8
8
  hasRequiredCancellation = 1;
9
- (function (exports) {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.CancellationTokenSource = exports.CancellationToken = void 0;
12
- const ral_1 = requireRal();
13
- const Is = requireIs();
14
- const events_1 = requireEvents();
15
- var CancellationToken;
16
- (function (CancellationToken) {
17
- CancellationToken.None = Object.freeze({
18
- isCancellationRequested: false,
19
- onCancellationRequested: events_1.Event.None
20
- });
21
- CancellationToken.Cancelled = Object.freeze({
22
- isCancellationRequested: true,
23
- onCancellationRequested: events_1.Event.None
24
- });
25
- function is(value) {
26
- const candidate = value;
27
- return candidate && (candidate === CancellationToken.None
28
- || candidate === CancellationToken.Cancelled
29
- || (Is.boolean(candidate.isCancellationRequested) && !!candidate.onCancellationRequested));
30
- }
31
- CancellationToken.is = is;
32
- })(CancellationToken = exports.CancellationToken || (exports.CancellationToken = {}));
33
- const shortcutEvent = Object.freeze(function (callback, context) {
34
- const handle = (0, ral_1.default)().timer.setTimeout(callback.bind(context), 0);
35
- return { dispose() { handle.dispose(); } };
36
- });
37
- class MutableToken {
38
- constructor() {
39
- this._isCancelled = false;
40
- }
41
- cancel() {
42
- if (!this._isCancelled) {
43
- this._isCancelled = true;
44
- if (this._emitter) {
45
- this._emitter.fire(undefined);
46
- this.dispose();
47
- }
48
- }
49
- }
50
- get isCancellationRequested() {
51
- return this._isCancelled;
52
- }
53
- get onCancellationRequested() {
54
- if (this._isCancelled) {
55
- return shortcutEvent;
56
- }
57
- if (!this._emitter) {
58
- this._emitter = new events_1.Emitter();
59
- }
60
- return this._emitter.event;
61
- }
62
- dispose() {
63
- if (this._emitter) {
64
- this._emitter.dispose();
65
- this._emitter = undefined;
66
- }
67
- }
68
- }
69
- class CancellationTokenSource {
70
- get token() {
71
- if (!this._token) {
72
- this._token = new MutableToken();
73
- }
74
- return this._token;
75
- }
76
- cancel() {
77
- if (!this._token) {
78
- this._token = CancellationToken.Cancelled;
79
- }
80
- else {
81
- this._token.cancel();
82
- }
83
- }
84
- dispose() {
85
- if (!this._token) {
86
- this._token = CancellationToken.None;
87
- }
88
- else if (this._token instanceof MutableToken) {
89
- this._token.dispose();
90
- }
91
- }
92
- }
93
- exports.CancellationTokenSource = CancellationTokenSource;
94
- } (cancellation));
9
+ Object.defineProperty(cancellation, "__esModule", { value: true });
10
+ cancellation.CancellationTokenSource = cancellation.CancellationToken = void 0;
11
+ const ral_1 = requireRal();
12
+ const Is = requireIs();
13
+ const events_1 = requireEvents();
14
+ var CancellationToken;
15
+ (function (CancellationToken) {
16
+ CancellationToken.None = Object.freeze({
17
+ isCancellationRequested: false,
18
+ onCancellationRequested: events_1.Event.None
19
+ });
20
+ CancellationToken.Cancelled = Object.freeze({
21
+ isCancellationRequested: true,
22
+ onCancellationRequested: events_1.Event.None
23
+ });
24
+ function is(value) {
25
+ const candidate = value;
26
+ return candidate && (candidate === CancellationToken.None
27
+ || candidate === CancellationToken.Cancelled
28
+ || (Is.boolean(candidate.isCancellationRequested) && !!candidate.onCancellationRequested));
29
+ }
30
+ CancellationToken.is = is;
31
+ })(CancellationToken || (cancellation.CancellationToken = CancellationToken = {}));
32
+ const shortcutEvent = Object.freeze(function (callback, context) {
33
+ const handle = (0, ral_1.default)().timer.setTimeout(callback.bind(context), 0);
34
+ return { dispose() { handle.dispose(); } };
35
+ });
36
+ class MutableToken {
37
+ constructor() {
38
+ this._isCancelled = false;
39
+ }
40
+ cancel() {
41
+ if (!this._isCancelled) {
42
+ this._isCancelled = true;
43
+ if (this._emitter) {
44
+ this._emitter.fire(undefined);
45
+ this.dispose();
46
+ }
47
+ }
48
+ }
49
+ get isCancellationRequested() {
50
+ return this._isCancelled;
51
+ }
52
+ get onCancellationRequested() {
53
+ if (this._isCancelled) {
54
+ return shortcutEvent;
55
+ }
56
+ if (!this._emitter) {
57
+ this._emitter = new events_1.Emitter();
58
+ }
59
+ return this._emitter.event;
60
+ }
61
+ dispose() {
62
+ if (this._emitter) {
63
+ this._emitter.dispose();
64
+ this._emitter = undefined;
65
+ }
66
+ }
67
+ }
68
+ class CancellationTokenSource {
69
+ get token() {
70
+ if (!this._token) {
71
+ this._token = new MutableToken();
72
+ }
73
+ return this._token;
74
+ }
75
+ cancel() {
76
+ if (!this._token) {
77
+ this._token = CancellationToken.Cancelled;
78
+ }
79
+ else {
80
+ this._token.cancel();
81
+ }
82
+ }
83
+ dispose() {
84
+ if (!this._token) {
85
+ this._token = CancellationToken.None;
86
+ }
87
+ else if (this._token instanceof MutableToken) {
88
+ this._token.dispose();
89
+ }
90
+ }
91
+ }
92
+ cancellation.CancellationTokenSource = CancellationTokenSource;
95
93
  return cancellation;
96
94
  }
97
95
  export { requireCancellation as __require };
@@ -28,7 +28,7 @@ function requireConnection () {
28
28
  return typeof value === 'string' || typeof value === 'number';
29
29
  }
30
30
  ProgressToken.is = is;
31
- })(ProgressToken = exports.ProgressToken || (exports.ProgressToken = {}));
31
+ })(ProgressToken || (exports.ProgressToken = ProgressToken = {}));
32
32
  var ProgressNotification;
33
33
  (function (ProgressNotification) {
34
34
  ProgressNotification.type = new messages_1.NotificationType('$/progress');
@@ -57,13 +57,14 @@ function requireConnection () {
57
57
  Trace[Trace["Messages"] = 1] = "Messages";
58
58
  Trace[Trace["Compact"] = 2] = "Compact";
59
59
  Trace[Trace["Verbose"] = 3] = "Verbose";
60
- })(Trace = exports.Trace || (exports.Trace = {}));
60
+ })(Trace || (exports.Trace = Trace = {}));
61
+ var TraceValues;
61
62
  (function (TraceValues) {
62
63
  TraceValues.Off = 'off';
63
64
  TraceValues.Messages = 'messages';
64
65
  TraceValues.Compact = 'compact';
65
66
  TraceValues.Verbose = 'verbose';
66
- })(exports.TraceValues || (exports.TraceValues = {}));
67
+ })(TraceValues || (exports.TraceValues = TraceValues = {}));
67
68
  (function (Trace) {
68
69
  function fromString(value) {
69
70
  if (!Is.string(value)) {
@@ -99,12 +100,12 @@ function requireConnection () {
99
100
  }
100
101
  }
101
102
  Trace.toString = toString;
102
- })(Trace = exports.Trace || (exports.Trace = {}));
103
+ })(Trace || (exports.Trace = Trace = {}));
103
104
  var TraceFormat;
104
105
  (function (TraceFormat) {
105
106
  TraceFormat["Text"] = "text";
106
107
  TraceFormat["JSON"] = "json";
107
- })(TraceFormat = exports.TraceFormat || (exports.TraceFormat = {}));
108
+ })(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
108
109
  (function (TraceFormat) {
109
110
  function fromString(value) {
110
111
  if (!Is.string(value)) {
@@ -119,21 +120,21 @@ function requireConnection () {
119
120
  }
120
121
  }
121
122
  TraceFormat.fromString = fromString;
122
- })(TraceFormat = exports.TraceFormat || (exports.TraceFormat = {}));
123
+ })(TraceFormat || (exports.TraceFormat = TraceFormat = {}));
123
124
  var SetTraceNotification;
124
125
  (function (SetTraceNotification) {
125
126
  SetTraceNotification.type = new messages_1.NotificationType('$/setTrace');
126
- })(SetTraceNotification = exports.SetTraceNotification || (exports.SetTraceNotification = {}));
127
+ })(SetTraceNotification || (exports.SetTraceNotification = SetTraceNotification = {}));
127
128
  var LogTraceNotification;
128
129
  (function (LogTraceNotification) {
129
130
  LogTraceNotification.type = new messages_1.NotificationType('$/logTrace');
130
- })(LogTraceNotification = exports.LogTraceNotification || (exports.LogTraceNotification = {}));
131
+ })(LogTraceNotification || (exports.LogTraceNotification = LogTraceNotification = {}));
131
132
  var ConnectionErrors;
132
133
  (function (ConnectionErrors) {
133
134
  ConnectionErrors[ConnectionErrors["Closed"] = 1] = "Closed";
134
135
  ConnectionErrors[ConnectionErrors["Disposed"] = 2] = "Disposed";
135
136
  ConnectionErrors[ConnectionErrors["AlreadyListening"] = 3] = "AlreadyListening";
136
- })(ConnectionErrors = exports.ConnectionErrors || (exports.ConnectionErrors = {}));
137
+ })(ConnectionErrors || (exports.ConnectionErrors = ConnectionErrors = {}));
137
138
  class ConnectionError extends Error {
138
139
  constructor(code, message) {
139
140
  super(message);
@@ -149,7 +150,7 @@ function requireConnection () {
149
150
  return candidate && Is.func(candidate.cancelUndispatched);
150
151
  }
151
152
  ConnectionStrategy.is = is;
152
- })(ConnectionStrategy = exports.ConnectionStrategy || (exports.ConnectionStrategy = {}));
153
+ })(ConnectionStrategy || (exports.ConnectionStrategy = ConnectionStrategy = {}));
153
154
  var IdCancellationReceiverStrategy;
154
155
  (function (IdCancellationReceiverStrategy) {
155
156
  function is(value) {
@@ -157,7 +158,7 @@ function requireConnection () {
157
158
  return candidate && (candidate.kind === undefined || candidate.kind === 'id') && Is.func(candidate.createCancellationTokenSource) && (candidate.dispose === undefined || Is.func(candidate.dispose));
158
159
  }
159
160
  IdCancellationReceiverStrategy.is = is;
160
- })(IdCancellationReceiverStrategy = exports.IdCancellationReceiverStrategy || (exports.IdCancellationReceiverStrategy = {}));
161
+ })(IdCancellationReceiverStrategy || (exports.IdCancellationReceiverStrategy = IdCancellationReceiverStrategy = {}));
161
162
  var RequestCancellationReceiverStrategy;
162
163
  (function (RequestCancellationReceiverStrategy) {
163
164
  function is(value) {
@@ -165,7 +166,7 @@ function requireConnection () {
165
166
  return candidate && candidate.kind === 'request' && Is.func(candidate.createCancellationTokenSource) && (candidate.dispose === undefined || Is.func(candidate.dispose));
166
167
  }
167
168
  RequestCancellationReceiverStrategy.is = is;
168
- })(RequestCancellationReceiverStrategy = exports.RequestCancellationReceiverStrategy || (exports.RequestCancellationReceiverStrategy = {}));
169
+ })(RequestCancellationReceiverStrategy || (exports.RequestCancellationReceiverStrategy = RequestCancellationReceiverStrategy = {}));
169
170
  var CancellationReceiverStrategy;
170
171
  (function (CancellationReceiverStrategy) {
171
172
  CancellationReceiverStrategy.Message = Object.freeze({
@@ -177,7 +178,7 @@ function requireConnection () {
177
178
  return IdCancellationReceiverStrategy.is(value) || RequestCancellationReceiverStrategy.is(value);
178
179
  }
179
180
  CancellationReceiverStrategy.is = is;
180
- })(CancellationReceiverStrategy = exports.CancellationReceiverStrategy || (exports.CancellationReceiverStrategy = {}));
181
+ })(CancellationReceiverStrategy || (exports.CancellationReceiverStrategy = CancellationReceiverStrategy = {}));
181
182
  var CancellationSenderStrategy;
182
183
  (function (CancellationSenderStrategy) {
183
184
  CancellationSenderStrategy.Message = Object.freeze({
@@ -191,7 +192,7 @@ function requireConnection () {
191
192
  return candidate && Is.func(candidate.sendCancellation) && Is.func(candidate.cleanup);
192
193
  }
193
194
  CancellationSenderStrategy.is = is;
194
- })(CancellationSenderStrategy = exports.CancellationSenderStrategy || (exports.CancellationSenderStrategy = {}));
195
+ })(CancellationSenderStrategy || (exports.CancellationSenderStrategy = CancellationSenderStrategy = {}));
195
196
  var CancellationStrategy;
196
197
  (function (CancellationStrategy) {
197
198
  CancellationStrategy.Message = Object.freeze({
@@ -203,7 +204,7 @@ function requireConnection () {
203
204
  return candidate && CancellationReceiverStrategy.is(candidate.receiver) && CancellationSenderStrategy.is(candidate.sender);
204
205
  }
205
206
  CancellationStrategy.is = is;
206
- })(CancellationStrategy = exports.CancellationStrategy || (exports.CancellationStrategy = {}));
207
+ })(CancellationStrategy || (exports.CancellationStrategy = CancellationStrategy = {}));
207
208
  var MessageStrategy;
208
209
  (function (MessageStrategy) {
209
210
  function is(value) {
@@ -211,14 +212,15 @@ function requireConnection () {
211
212
  return candidate && Is.func(candidate.handleMessage);
212
213
  }
213
214
  MessageStrategy.is = is;
214
- })(MessageStrategy = exports.MessageStrategy || (exports.MessageStrategy = {}));
215
+ })(MessageStrategy || (exports.MessageStrategy = MessageStrategy = {}));
216
+ var ConnectionOptions;
215
217
  (function (ConnectionOptions) {
216
218
  function is(value) {
217
219
  const candidate = value;
218
220
  return candidate && (CancellationStrategy.is(candidate.cancellationStrategy) || ConnectionStrategy.is(candidate.connectionStrategy) || MessageStrategy.is(candidate.messageStrategy));
219
221
  }
220
222
  ConnectionOptions.is = is;
221
- })(exports.ConnectionOptions || (exports.ConnectionOptions = {}));
223
+ })(ConnectionOptions || (exports.ConnectionOptions = ConnectionOptions = {}));
222
224
  var ConnectionState;
223
225
  (function (ConnectionState) {
224
226
  ConnectionState[ConnectionState["New"] = 1] = "New";
@@ -3,18 +3,17 @@ var hasRequiredDisposable;
3
3
  function requireDisposable () {
4
4
  if (hasRequiredDisposable) return disposable;
5
5
  hasRequiredDisposable = 1;
6
- (function (exports) {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Disposable = void 0;
9
- (function (Disposable) {
10
- function create(func) {
11
- return {
12
- dispose: func
13
- };
14
- }
15
- Disposable.create = create;
16
- })(exports.Disposable || (exports.Disposable = {}));
17
- } (disposable));
6
+ Object.defineProperty(disposable, "__esModule", { value: true });
7
+ disposable.Disposable = void 0;
8
+ var Disposable;
9
+ (function (Disposable) {
10
+ function create(func) {
11
+ return {
12
+ dispose: func
13
+ };
14
+ }
15
+ Disposable.create = create;
16
+ })(Disposable || (disposable.Disposable = Disposable = {}));
18
17
  return disposable;
19
18
  }
20
19
  export { requireDisposable as __require };
@@ -4,119 +4,118 @@ var hasRequiredEvents;
4
4
  function requireEvents () {
5
5
  if (hasRequiredEvents) return events;
6
6
  hasRequiredEvents = 1;
7
- (function (exports) {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Emitter = exports.Event = void 0;
10
- const ral_1 = requireRal();
11
- (function (Event) {
12
- const _disposable = { dispose() { } };
13
- Event.None = function () { return _disposable; };
14
- })(exports.Event || (exports.Event = {}));
15
- class CallbackList {
16
- add(callback, context = null, bucket) {
17
- if (!this._callbacks) {
18
- this._callbacks = [];
19
- this._contexts = [];
20
- }
21
- this._callbacks.push(callback);
22
- this._contexts.push(context);
23
- if (Array.isArray(bucket)) {
24
- bucket.push({ dispose: () => this.remove(callback, context) });
25
- }
26
- }
27
- remove(callback, context = null) {
28
- if (!this._callbacks) {
29
- return;
30
- }
31
- let foundCallbackWithDifferentContext = false;
32
- for (let i = 0, len = this._callbacks.length; i < len; i++) {
33
- if (this._callbacks[i] === callback) {
34
- if (this._contexts[i] === context) {
35
- this._callbacks.splice(i, 1);
36
- this._contexts.splice(i, 1);
37
- return;
38
- }
39
- else {
40
- foundCallbackWithDifferentContext = true;
41
- }
42
- }
43
- }
44
- if (foundCallbackWithDifferentContext) {
45
- throw new Error('When adding a listener with a context, you should remove it with the same context');
46
- }
47
- }
48
- invoke(...args) {
49
- if (!this._callbacks) {
50
- return [];
51
- }
52
- const ret = [], callbacks = this._callbacks.slice(0), contexts = this._contexts.slice(0);
53
- for (let i = 0, len = callbacks.length; i < len; i++) {
54
- try {
55
- ret.push(callbacks[i].apply(contexts[i], args));
56
- }
57
- catch (e) {
58
- (0, ral_1.default)().console.error(e);
59
- }
60
- }
61
- return ret;
62
- }
63
- isEmpty() {
64
- return !this._callbacks || this._callbacks.length === 0;
65
- }
66
- dispose() {
67
- this._callbacks = undefined;
68
- this._contexts = undefined;
69
- }
70
- }
71
- class Emitter {
72
- constructor(_options) {
73
- this._options = _options;
74
- }
75
- get event() {
76
- if (!this._event) {
77
- this._event = (listener, thisArgs, disposables) => {
78
- if (!this._callbacks) {
79
- this._callbacks = new CallbackList();
80
- }
81
- if (this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty()) {
82
- this._options.onFirstListenerAdd(this);
83
- }
84
- this._callbacks.add(listener, thisArgs);
85
- const result = {
86
- dispose: () => {
87
- if (!this._callbacks) {
88
- return;
89
- }
90
- this._callbacks.remove(listener, thisArgs);
91
- result.dispose = Emitter._noop;
92
- if (this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty()) {
93
- this._options.onLastListenerRemove(this);
94
- }
95
- }
96
- };
97
- if (Array.isArray(disposables)) {
98
- disposables.push(result);
99
- }
100
- return result;
101
- };
102
- }
103
- return this._event;
104
- }
105
- fire(event) {
106
- if (this._callbacks) {
107
- this._callbacks.invoke.call(this._callbacks, event);
108
- }
109
- }
110
- dispose() {
111
- if (this._callbacks) {
112
- this._callbacks.dispose();
113
- this._callbacks = undefined;
114
- }
115
- }
116
- }
117
- exports.Emitter = Emitter;
118
- Emitter._noop = function () { };
119
- } (events));
7
+ Object.defineProperty(events, "__esModule", { value: true });
8
+ events.Emitter = events.Event = void 0;
9
+ const ral_1 = requireRal();
10
+ var Event;
11
+ (function (Event) {
12
+ const _disposable = { dispose() { } };
13
+ Event.None = function () { return _disposable; };
14
+ })(Event || (events.Event = Event = {}));
15
+ class CallbackList {
16
+ add(callback, context = null, bucket) {
17
+ if (!this._callbacks) {
18
+ this._callbacks = [];
19
+ this._contexts = [];
20
+ }
21
+ this._callbacks.push(callback);
22
+ this._contexts.push(context);
23
+ if (Array.isArray(bucket)) {
24
+ bucket.push({ dispose: () => this.remove(callback, context) });
25
+ }
26
+ }
27
+ remove(callback, context = null) {
28
+ if (!this._callbacks) {
29
+ return;
30
+ }
31
+ let foundCallbackWithDifferentContext = false;
32
+ for (let i = 0, len = this._callbacks.length; i < len; i++) {
33
+ if (this._callbacks[i] === callback) {
34
+ if (this._contexts[i] === context) {
35
+ this._callbacks.splice(i, 1);
36
+ this._contexts.splice(i, 1);
37
+ return;
38
+ }
39
+ else {
40
+ foundCallbackWithDifferentContext = true;
41
+ }
42
+ }
43
+ }
44
+ if (foundCallbackWithDifferentContext) {
45
+ throw new Error('When adding a listener with a context, you should remove it with the same context');
46
+ }
47
+ }
48
+ invoke(...args) {
49
+ if (!this._callbacks) {
50
+ return [];
51
+ }
52
+ const ret = [], callbacks = this._callbacks.slice(0), contexts = this._contexts.slice(0);
53
+ for (let i = 0, len = callbacks.length; i < len; i++) {
54
+ try {
55
+ ret.push(callbacks[i].apply(contexts[i], args));
56
+ }
57
+ catch (e) {
58
+ (0, ral_1.default)().console.error(e);
59
+ }
60
+ }
61
+ return ret;
62
+ }
63
+ isEmpty() {
64
+ return !this._callbacks || this._callbacks.length === 0;
65
+ }
66
+ dispose() {
67
+ this._callbacks = undefined;
68
+ this._contexts = undefined;
69
+ }
70
+ }
71
+ class Emitter {
72
+ constructor(_options) {
73
+ this._options = _options;
74
+ }
75
+ get event() {
76
+ if (!this._event) {
77
+ this._event = (listener, thisArgs, disposables) => {
78
+ if (!this._callbacks) {
79
+ this._callbacks = new CallbackList();
80
+ }
81
+ if (this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty()) {
82
+ this._options.onFirstListenerAdd(this);
83
+ }
84
+ this._callbacks.add(listener, thisArgs);
85
+ const result = {
86
+ dispose: () => {
87
+ if (!this._callbacks) {
88
+ return;
89
+ }
90
+ this._callbacks.remove(listener, thisArgs);
91
+ result.dispose = Emitter._noop;
92
+ if (this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty()) {
93
+ this._options.onLastListenerRemove(this);
94
+ }
95
+ }
96
+ };
97
+ if (Array.isArray(disposables)) {
98
+ disposables.push(result);
99
+ }
100
+ return result;
101
+ };
102
+ }
103
+ return this._event;
104
+ }
105
+ fire(event) {
106
+ if (this._callbacks) {
107
+ this._callbacks.invoke.call(this._callbacks, event);
108
+ }
109
+ }
110
+ dispose() {
111
+ if (this._callbacks) {
112
+ this._callbacks.dispose();
113
+ this._callbacks = undefined;
114
+ }
115
+ }
116
+ }
117
+ events.Emitter = Emitter;
118
+ Emitter._noop = function () { };
120
119
  return events;
121
120
  }
122
121
  export { requireEvents as __require };
@@ -1,4 +1,4 @@
1
- import { __exports as is } from '../../../../_virtual/is3.js';
1
+ import { __exports as is } from '../../../../_virtual/is2.js';
2
2
  var hasRequiredIs;
3
3
  function requireIs () {
4
4
  if (hasRequiredIs) return is;