@codingame/monaco-vscode-model-service-override 4.5.0 → 4.5.2

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/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default } from './model.js';
1
+ export { default } from 'vscode/service-override/model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-model-service-override",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@4.5.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@4.5.2"
30
30
  }
31
31
  }
@@ -33,7 +33,7 @@ let ResourceModelCollection = class ResourceModelCollection extends ReferenceCol
33
33
  if (resource.scheme === Schemas.inMemory) {
34
34
  const cachedModel = this.modelService.getModel(resource);
35
35
  if (!cachedModel) {
36
- throw new Error(`Unable to resolve inMemory resource ${key}`);
36
+ throw ( new Error(`Unable to resolve inMemory resource ${key}`));
37
37
  }
38
38
  const model = this.instantiationService.createInstance(TextResourceEditorModel, resource);
39
39
  if (this.ensureResolvedModel(model, key)) {
@@ -63,13 +63,13 @@ let ResourceModelCollection = class ResourceModelCollection extends ReferenceCol
63
63
  await this.fileService.activateProvider(resource.scheme);
64
64
  return this.doCreateReferencedObject(key, true);
65
65
  }
66
- throw new Error(`Unable to resolve resource ${key}`);
66
+ throw ( new Error(`Unable to resolve resource ${key}`));
67
67
  }
68
68
  ensureResolvedModel(model, key) {
69
69
  if (isResolvedTextEditorModel(model)) {
70
70
  return true;
71
71
  }
72
- throw new Error(`Unable to resolve resource ${key}`);
72
+ throw ( new Error(`Unable to resolve resource ${key}`));
73
73
  }
74
74
  destroyReferencedObject(key, modelPromise) {
75
75
  const resource = ( URI.parse(key));
@@ -135,7 +135,7 @@ let ResourceModelCollection = class ResourceModelCollection extends ReferenceCol
135
135
  return value;
136
136
  }
137
137
  }
138
- throw new Error(`Unable to resolve text model content for resource ${key}`);
138
+ throw ( new Error(`Unable to resolve text model content for resource ${key}`));
139
139
  }
140
140
  };
141
141
  ResourceModelCollection = ( __decorate([
package/model.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
2
-
3
- declare function getServiceOverride(): IEditorOverrideServices;
4
-
5
- export { getServiceOverride as default };