@codingame/monaco-languageclient-wrapper 3.2.0 → 3.2.3

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/dist/tools.js CHANGED
@@ -1,31 +1,22 @@
1
1
  import { _ as _defineProperty } from './index2.js';
2
-
3
2
  function unsupported() {
4
3
  throw new Error('unsupported');
5
4
  }
6
-
7
5
  class MultiDisposeError extends Error {
8
6
  constructor(errors) {
9
7
  super("Encountered errors while disposing of store. Errors: [".concat(errors.join(', '), "]"));
10
8
  this.errors = errors;
11
9
  }
12
-
13
10
  }
14
-
15
11
  class SimpleExtensionContext {
16
12
  constructor() {
17
13
  _defineProperty(this, "subscriptions", []);
18
-
19
14
  _defineProperty(this, "asAbsolutePath", unsupported);
20
-
21
15
  _defineProperty(this, "storageUri", undefined);
22
-
23
16
  _defineProperty(this, "storagePath", undefined);
24
17
  }
25
-
26
18
  dispose() {
27
19
  const errors = [];
28
-
29
20
  for (const d of this.subscriptions) {
30
21
  try {
31
22
  d.dispose();
@@ -33,85 +24,64 @@ class SimpleExtensionContext {
33
24
  errors.push(e);
34
25
  }
35
26
  }
36
-
37
27
  if (errors.length === 1) {
38
28
  throw errors[0];
39
29
  } else if (errors.length > 1) {
40
30
  throw new MultiDisposeError(errors);
41
31
  }
42
32
  }
43
-
44
33
  get workspaceState() {
45
34
  return unsupported();
46
35
  }
47
-
48
36
  get globalState() {
49
37
  return unsupported();
50
38
  }
51
-
52
39
  get secrets() {
53
40
  return unsupported();
54
41
  }
55
-
56
42
  get extensionUri() {
57
43
  return unsupported();
58
44
  }
59
-
60
45
  get extensionPath() {
61
46
  return unsupported();
62
47
  }
63
-
64
48
  get environmentVariableCollection() {
65
49
  return unsupported();
66
50
  }
67
-
68
51
  get globalStorageUri() {
69
52
  return unsupported();
70
53
  }
71
-
72
54
  get globalStoragePath() {
73
55
  return unsupported();
74
56
  }
75
-
76
57
  get logUri() {
77
58
  return unsupported();
78
59
  }
79
-
80
60
  get logPath() {
81
61
  return unsupported();
82
62
  }
83
-
84
63
  get extensionMode() {
85
64
  return unsupported();
86
65
  }
87
-
88
66
  get extension() {
89
67
  return unsupported();
90
68
  }
91
-
92
69
  }
93
-
94
70
  class ExtensionFeature {
95
71
  constructor() {
96
72
  _defineProperty(this, "context", new SimpleExtensionContext());
97
73
  }
98
-
99
74
  fillClientCapabilities() {}
100
-
101
75
  initialize(capabilities, documentSelector) {
102
76
  this.activate(this.context, capabilities, documentSelector);
103
77
  }
104
-
105
78
  getState() {
106
79
  return {
107
80
  kind: 'static'
108
81
  };
109
82
  }
110
-
111
83
  dispose() {
112
84
  this.context.dispose();
113
85
  }
114
-
115
86
  }
116
-
117
87
  export { ExtensionFeature as E };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-languageclient-wrapper",
3
- "version": "3.2.0",
3
+ "version": "3.2.3",
4
4
  "private": false,
5
5
  "description": "Enhanced Monaco editor with TextMate grammars and more",
6
6
  "scripts": {
@@ -64,10 +64,12 @@
64
64
  "eslint-plugin-unused-imports": "^2.0.0",
65
65
  "jest": "^28.1.2",
66
66
  "jest-environment-jsdom": "^28.1.2",
67
+ "js-cleanup": "^1.2.0",
67
68
  "monaco-languageclient": "^2.0.2",
68
69
  "proxy-polyfill": "^0.3.2",
69
70
  "rollup": "2.76.0",
70
71
  "rollup-plugin-dts": "^4.2.2",
72
+ "rollup-plugin-polyfill-node": "^0.10.1",
71
73
  "rollup-plugin-postcss": "4.0.2",
72
74
  "rollup-plugin-visualizer": "5.6.0",
73
75
  "rollup-plugin-web-worker-loader": "1.6.1",