@codingame/monaco-vscode-api 1.68.4 → 1.68.7

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/api.js CHANGED
@@ -8494,7 +8494,7 @@ class SimpleMessagePassingProtocol {
8494
8494
  }
8495
8495
  }
8496
8496
  const imessagePassingProtocol = new SimpleMessagePassingProtocol();
8497
- const rpcProtocol = new RPCProtocol(imessagePassingProtocol, null, null);
8497
+ const rpcProtocol = new RPCProtocol(imessagePassingProtocol);
8498
8498
  const extHostFileSystemInfo = new ExtHostFileSystemInfo();
8499
8499
  const mainContext = {
8500
8500
  getProxy: function (identifier) {
@@ -8580,6 +8580,9 @@ const extHostApiDeprecationService = {
8580
8580
  }
8581
8581
  };
8582
8582
  class MainThreadDiagnostics {
8583
+ constructor() {
8584
+ this._activeOwners = new Set();
8585
+ }
8583
8586
  $changeMany(owner, entries) {
8584
8587
  for (const entry of entries) {
8585
8588
  const [uri, markers] = entry;
@@ -8597,6 +8600,7 @@ class MainThreadDiagnostics {
8597
8600
  }
8598
8601
  monaco.editor.setModelMarkers(monaco.editor.getModel(URI.revive(uri)), owner, markers);
8599
8602
  }
8603
+ this._activeOwners.add(owner);
8600
8604
  }
8601
8605
  $clear(owner) {
8602
8606
  const markers = monaco.editor.getModelMarkers({
@@ -8609,8 +8613,11 @@ class MainThreadDiagnostics {
8609
8613
  for (const model of models) {
8610
8614
  monaco.editor.setModelMarkers(model, owner, []);
8611
8615
  }
8616
+ this._activeOwners.delete(owner);
8612
8617
  }
8613
8618
  dispose() {
8619
+ this._activeOwners.forEach(owner => this.$clear(owner));
8620
+ this._activeOwners.clear();
8614
8621
  }
8615
8622
  }
8616
8623
  rpcProtocol.set(MainContext.MainThreadDiagnostics, new MainThreadDiagnostics());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.68.4",
3
+ "version": "1.68.7",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -14,29 +14,15 @@
14
14
  "url": "https://github.com/CodinGame/monaco-vscode-api"
15
15
  },
16
16
  "type": "module",
17
- "main": "dist/api.cjs",
17
+ "main": "dist/api.js",
18
18
  "module": "dist/api.js",
19
19
  "exports": {
20
20
  ".": {
21
21
  "default": "./dist/api.js"
22
22
  },
23
- "./amd": {
24
- "default": "./dist/api.amd.js"
25
- },
26
- "./cjs": {
27
- "default": "./dist/api.amd.js"
28
- },
29
23
  "./services": {
30
24
  "types": "./dist/services.d.ts",
31
25
  "default": "./dist/services.js"
32
- },
33
- "./services/cjs": {
34
- "types": "./dist/services.d.ts",
35
- "default": "./dist/services.cjs"
36
- },
37
- "./services/amd": {
38
- "types": "./dist/services.d.ts",
39
- "default": "./dist/services.amd.js"
40
26
  }
41
27
  },
42
28
  "typesVersions": {
@@ -53,9 +39,15 @@
53
39
  "scripts": {
54
40
  "build": "rm -rf dist/ && npm run lint && npm run compile && npm run generate-types",
55
41
  "compile": "rollup --config rollup/rollup.config.ts --configPlugin 'typescript={tsconfig: `tsconfig.rollup.json`}'",
56
- "preprepare": "./scripts/install-vscode",
42
+ "preprepare": "./scripts/install-vscode ${npm_package_config_vscode_version}",
57
43
  "lint": "eslint --ext ts src",
58
- "generate-types": "tsc --project tsconfig.types.json && rollup --config rollup/rollup.types.config.ts --configPlugin 'typescript={tsconfig: `tsconfig.rollup.json`}' && rm -rf ./dist/types"
44
+ "generate-types": "tsc --project tsconfig.types.json && rollup --config rollup/rollup.types.config.ts --configPlugin 'typescript={tsconfig: `tsconfig.rollup.json`}' && rm -rf ./dist/types",
45
+ "release": "node --loader ts-node/esm release.ts ${npm_package_config_vscode_version}"
46
+ },
47
+ "config": {
48
+ "vscode": {
49
+ "version": "1.68.0"
50
+ }
59
51
  },
60
52
  "devDependencies": {
61
53
  "@babel/core": "^7.18.2",
@@ -65,9 +57,11 @@
65
57
  "@babel/preset-typescript": "^7.17.12",
66
58
  "@codingame/eslint-config": "^1.1.2",
67
59
  "@codingame/tsconfig": "^1.0.5",
60
+ "@octokit/rest": "^18.12.0",
68
61
  "@rollup/plugin-node-resolve": "^13.3.0",
69
62
  "@rollup/plugin-typescript": "^8.3.2",
70
63
  "@types/babel__core": "^7.1.19",
64
+ "@types/semver": "^7.3.10",
71
65
  "@types/vscode": "^1.68.0",
72
66
  "@typescript-eslint/eslint-plugin": "^5.27.1",
73
67
  "@typescript-eslint/parser": "^5.27.1",
@@ -81,7 +75,10 @@
81
75
  "recast": "^0.21.1",
82
76
  "rollup": "^2.75.6",
83
77
  "rollup-plugin-dts": "^4.2.2",
84
- "typescript": "^4.7.3"
78
+ "semver": "^7.3.7",
79
+ "ts-node": "^10.8.1",
80
+ "typescript": "^4.7.3",
81
+ "zx": "^7.0.0"
85
82
  },
86
83
  "dependencies": {
87
84
  "monaco-editor": "^0.33.0"