@codingame/monaco-vscode-api 1.67.7 → 1.68.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.
- package/README.md +12 -4
- package/dist/api.amd.js +5095 -6483
- package/dist/api.cjs +5111 -6496
- package/dist/api.js +5102 -6482
- package/dist/services.amd.js +1 -7
- package/dist/services.cjs +1 -7
- package/dist/services.d.ts +50 -53
- package/dist/services.js +0 -2
- package/package.json +10 -10
package/dist/services.amd.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
define(['exports', 'monaco-editor/esm/vs/base/common/severity.js'], (function (exports, Severity) { 'use strict';
|
|
2
|
-
|
|
3
2
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
4
|
-
|
|
5
|
-
var Severity__default = /*#__PURE__*/_interopDefaultLegacy(Severity);
|
|
6
|
-
|
|
3
|
+
var Severity__default = _interopDefaultLegacy(Severity);
|
|
7
4
|
let services;
|
|
8
5
|
exports.Services = void 0;
|
|
9
6
|
(function (Services) {
|
|
@@ -28,12 +25,9 @@ define(['exports', 'monaco-editor/esm/vs/base/common/severity.js'], (function (e
|
|
|
28
25
|
}
|
|
29
26
|
Services.install = install;
|
|
30
27
|
})(exports.Services || (exports.Services = {}));
|
|
31
|
-
|
|
32
28
|
Object.defineProperty(exports, 'Severity', {
|
|
33
29
|
enumerable: true,
|
|
34
30
|
get: function () { return Severity__default["default"]; }
|
|
35
31
|
});
|
|
36
|
-
|
|
37
32
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
38
|
-
|
|
39
33
|
}));
|
package/dist/services.cjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
2
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var Severity = require('monaco-editor/esm/vs/base/common/severity.js');
|
|
6
|
-
|
|
7
4
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var Severity__default = /*#__PURE__*/_interopDefaultLegacy(Severity);
|
|
10
|
-
|
|
5
|
+
var Severity__default = _interopDefaultLegacy(Severity);
|
|
11
6
|
let services;
|
|
12
7
|
exports.Services = void 0;
|
|
13
8
|
(function (Services) {
|
|
@@ -32,7 +27,6 @@ exports.Services = void 0;
|
|
|
32
27
|
}
|
|
33
28
|
Services.install = install;
|
|
34
29
|
})(exports.Services || (exports.Services = {}));
|
|
35
|
-
|
|
36
30
|
Object.defineProperty(exports, 'Severity', {
|
|
37
31
|
enumerable: true,
|
|
38
32
|
get: function () { return Severity__default["default"]; }
|
package/dist/services.d.ts
CHANGED
|
@@ -600,6 +600,26 @@ declare class Range {
|
|
|
600
600
|
toJSON(): IRange;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
+
/**
|
|
604
|
+
* A single edit operation, that acts as a simple replace.
|
|
605
|
+
* i.e. Replace text at `range` with `text` in model.
|
|
606
|
+
*/
|
|
607
|
+
interface ISingleEditOperation {
|
|
608
|
+
/**
|
|
609
|
+
* The range to replace. This can be empty to emulate a simple insert.
|
|
610
|
+
*/
|
|
611
|
+
range: IRange;
|
|
612
|
+
/**
|
|
613
|
+
* The text to replace with. This can be null to emulate a simple delete.
|
|
614
|
+
*/
|
|
615
|
+
text: string | null;
|
|
616
|
+
/**
|
|
617
|
+
* This indicates that this operation has "insert" semantics.
|
|
618
|
+
* i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
|
|
619
|
+
*/
|
|
620
|
+
forceMoveMarkers?: boolean;
|
|
621
|
+
}
|
|
622
|
+
|
|
603
623
|
/**
|
|
604
624
|
* A selection in the editor.
|
|
605
625
|
* The selection is a range that has an orientation.
|
|
@@ -716,23 +736,37 @@ declare class Selection extends Range {
|
|
|
716
736
|
}
|
|
717
737
|
|
|
718
738
|
/**
|
|
719
|
-
*
|
|
720
|
-
* i.e. Replace text at `range` with `text` in model.
|
|
739
|
+
* Open ended enum at runtime
|
|
721
740
|
*/
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
741
|
+
declare const enum LanguageId {
|
|
742
|
+
Null = 0,
|
|
743
|
+
PlainText = 1
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Open ended enum at runtime
|
|
747
|
+
*/
|
|
748
|
+
declare const enum ColorId {
|
|
749
|
+
None = 0,
|
|
750
|
+
DefaultForeground = 1,
|
|
751
|
+
DefaultBackground = 2
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* A standard token type.
|
|
755
|
+
*/
|
|
756
|
+
declare const enum StandardTokenType {
|
|
757
|
+
Other = 0,
|
|
758
|
+
Comment = 1,
|
|
759
|
+
String = 2,
|
|
760
|
+
RegEx = 3
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
*/
|
|
764
|
+
interface ITokenPresentation {
|
|
765
|
+
foreground: ColorId;
|
|
766
|
+
italic: boolean;
|
|
767
|
+
bold: boolean;
|
|
768
|
+
underline: boolean;
|
|
769
|
+
strikethrough: boolean;
|
|
736
770
|
}
|
|
737
771
|
|
|
738
772
|
declare class TextChange {
|
|
@@ -2987,43 +3021,6 @@ interface IInternalModelContentChange extends IModelContentChange {
|
|
|
2987
3021
|
forceMoveMarkers: boolean;
|
|
2988
3022
|
}
|
|
2989
3023
|
|
|
2990
|
-
/**
|
|
2991
|
-
* Open ended enum at runtime
|
|
2992
|
-
* @internal
|
|
2993
|
-
*/
|
|
2994
|
-
declare const enum LanguageId {
|
|
2995
|
-
Null = 0,
|
|
2996
|
-
PlainText = 1
|
|
2997
|
-
}
|
|
2998
|
-
/**
|
|
2999
|
-
* Open ended enum at runtime
|
|
3000
|
-
* @internal
|
|
3001
|
-
*/
|
|
3002
|
-
declare const enum ColorId {
|
|
3003
|
-
None = 0,
|
|
3004
|
-
DefaultForeground = 1,
|
|
3005
|
-
DefaultBackground = 2
|
|
3006
|
-
}
|
|
3007
|
-
/**
|
|
3008
|
-
* A standard token type.
|
|
3009
|
-
* @internal
|
|
3010
|
-
*/
|
|
3011
|
-
declare const enum StandardTokenType {
|
|
3012
|
-
Other = 0,
|
|
3013
|
-
Comment = 1,
|
|
3014
|
-
String = 2,
|
|
3015
|
-
RegEx = 3
|
|
3016
|
-
}
|
|
3017
|
-
/**
|
|
3018
|
-
* @internal
|
|
3019
|
-
*/
|
|
3020
|
-
interface ITokenPresentation {
|
|
3021
|
-
foreground: ColorId;
|
|
3022
|
-
italic: boolean;
|
|
3023
|
-
bold: boolean;
|
|
3024
|
-
underline: boolean;
|
|
3025
|
-
strikethrough: boolean;
|
|
3026
|
-
}
|
|
3027
3024
|
/**
|
|
3028
3025
|
* @internal
|
|
3029
3026
|
*/
|
package/dist/services.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { default as Severity } from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
2
|
-
|
|
3
2
|
let services;
|
|
4
3
|
var Services;
|
|
5
4
|
(function (Services) {
|
|
@@ -24,5 +23,4 @@ var Services;
|
|
|
24
23
|
}
|
|
25
24
|
Services.install = install;
|
|
26
25
|
})(Services || (Services = {}));
|
|
27
|
-
|
|
28
26
|
export { Services };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -64,24 +64,24 @@
|
|
|
64
64
|
"@babel/preset-env": "^7.18.2",
|
|
65
65
|
"@babel/preset-typescript": "^7.17.12",
|
|
66
66
|
"@codingame/eslint-config": "^1.1.2",
|
|
67
|
-
"@codingame/tsconfig": "^1.0.
|
|
67
|
+
"@codingame/tsconfig": "^1.0.5",
|
|
68
68
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
69
69
|
"@rollup/plugin-typescript": "^8.3.2",
|
|
70
70
|
"@types/babel__core": "^7.1.19",
|
|
71
|
-
"@types/vscode": "^1.
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^5.27.
|
|
73
|
-
"@typescript-eslint/parser": "^5.27.
|
|
74
|
-
"eslint": "^8.
|
|
71
|
+
"@types/vscode": "^1.68.0",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
73
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
74
|
+
"eslint": "^8.17.0",
|
|
75
75
|
"eslint-config-standard": "^17.0.0",
|
|
76
76
|
"eslint-plugin-import": "^2.26.0",
|
|
77
|
-
"eslint-plugin-n": "^15.2.
|
|
77
|
+
"eslint-plugin-n": "^15.2.2",
|
|
78
78
|
"eslint-plugin-promise": "^6.0.0",
|
|
79
79
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
80
|
+
"js-cleanup": "^1.2.0",
|
|
80
81
|
"recast": "^0.21.1",
|
|
81
|
-
"rollup": "^2.75.
|
|
82
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
82
|
+
"rollup": "^2.75.6",
|
|
83
83
|
"rollup-plugin-dts": "^4.2.2",
|
|
84
|
-
"typescript": "^4.7.
|
|
84
|
+
"typescript": "^4.7.3"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"monaco-editor": "^0.33.0"
|