@codingame/monaco-vscode-api 1.68.6 → 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 +8 -1
- package/package.json +2 -16
- package/dist/api.amd.js +0 -10066
- package/dist/api.cjs +0 -10107
- package/dist/services.amd.js +0 -33
- package/dist/services.cjs +0 -33
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
|
|
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.
|
|
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.
|
|
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": {
|