@codingame/monaco-vscode-api 1.69.6 → 1.69.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/contextkey.js +128 -1
- package/dist/extHost.js +2 -2
- package/dist/files.js +1 -1
- package/dist/keybindings.js +2 -2
- package/dist/languageService.js +1 -1
- package/dist/missing-services.js +661 -661
- package/dist/modelEditor.js +1 -1
- package/dist/notifications.js +2 -2
- package/dist/polyfill.js +5815 -0
- package/dist/services.js +2 -2
- package/dist/services2.js +1 -128
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { f as IEditorGroupsService, c as IEditorService, I as IFileService, l as IHostService, k as ILanguageStatusService, d as IPaneCompositePartService, i as IPathService, j as IProductService, m as ISnippetsService, e as ITextFileService, b as IUriIdentityService, g as IWorkbenchEnvironmentService, h as IWorkingCopyFileService,
|
|
2
|
-
export { C as ContextKeyExprType } from './contextkey.js';
|
|
1
|
+
export { f as IEditorGroupsService, c as IEditorService, I as IFileService, l as IHostService, k as ILanguageStatusService, d as IPaneCompositePartService, i as IPathService, j as IProductService, m as ISnippetsService, e as ITextFileService, b as IUriIdentityService, g as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, S as Services } from './services2.js';
|
|
2
|
+
export { C as ContextKeyExprType, f as NotificationsFilter } from './contextkey.js';
|
|
3
3
|
export { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
4
4
|
export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
5
5
|
export { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
package/dist/services2.js
CHANGED
|
@@ -3,137 +3,10 @@ import { IEnvironmentService } from 'monaco-editor/esm/vs/platform/environment/c
|
|
|
3
3
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
4
4
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
5
5
|
import { TernarySearchTree } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
6
|
-
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
7
6
|
function refineServiceDecorator(serviceIdentifier) {
|
|
8
7
|
return serviceIdentifier;
|
|
9
8
|
}
|
|
10
9
|
const CancellationTokenSource = monaco.CancellationTokenSource;
|
|
11
|
-
function sortedDiff(before, after, compare) {
|
|
12
|
-
const result = [];
|
|
13
|
-
function pushSplice(start, deleteCount, toInsert) {
|
|
14
|
-
if (deleteCount === 0 && toInsert.length === 0) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const latest = result[result.length - 1];
|
|
18
|
-
if (latest && latest.start + latest.deleteCount === start) {
|
|
19
|
-
latest.deleteCount += deleteCount;
|
|
20
|
-
latest.toInsert.push(...toInsert);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
result.push({ start, deleteCount, toInsert });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
let beforeIdx = 0;
|
|
27
|
-
let afterIdx = 0;
|
|
28
|
-
while (true) {
|
|
29
|
-
if (beforeIdx === before.length) {
|
|
30
|
-
pushSplice(beforeIdx, 0, after.slice(afterIdx));
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
if (afterIdx === after.length) {
|
|
34
|
-
pushSplice(beforeIdx, before.length - beforeIdx, []);
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
const beforeElement = before[beforeIdx];
|
|
38
|
-
const afterElement = after[afterIdx];
|
|
39
|
-
const n = compare(beforeElement, afterElement);
|
|
40
|
-
if (n === 0) {
|
|
41
|
-
beforeIdx += 1;
|
|
42
|
-
afterIdx += 1;
|
|
43
|
-
}
|
|
44
|
-
else if (n < 0) {
|
|
45
|
-
pushSplice(beforeIdx, 1, []);
|
|
46
|
-
beforeIdx += 1;
|
|
47
|
-
}
|
|
48
|
-
else if (n > 0) {
|
|
49
|
-
pushSplice(beforeIdx, 0, [afterElement]);
|
|
50
|
-
afterIdx += 1;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
function delta(before, after, compare) {
|
|
56
|
-
const splices = sortedDiff(before, after, compare);
|
|
57
|
-
const removed = [];
|
|
58
|
-
const added = [];
|
|
59
|
-
for (const splice of splices) {
|
|
60
|
-
removed.push(...before.slice(splice.start, splice.start + splice.deleteCount));
|
|
61
|
-
added.push(...splice.toInsert);
|
|
62
|
-
}
|
|
63
|
-
return { removed, added };
|
|
64
|
-
}
|
|
65
|
-
function coalesceInPlace(array) {
|
|
66
|
-
let to = 0;
|
|
67
|
-
for (let i = 0; i < array.length; i++) {
|
|
68
|
-
if (!!array[i]) {
|
|
69
|
-
array[to] = array[i];
|
|
70
|
-
to += 1;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
array.length = to;
|
|
74
|
-
}
|
|
75
|
-
function flatten(arr) {
|
|
76
|
-
return [].concat(...arr);
|
|
77
|
-
}
|
|
78
|
-
function index(array, indexer, mapper) {
|
|
79
|
-
return array.reduce((r, t) => {
|
|
80
|
-
r[indexer(t)] = mapper ? mapper(t) : t;
|
|
81
|
-
return r;
|
|
82
|
-
}, Object.create(null));
|
|
83
|
-
}
|
|
84
|
-
function shuffle(array, _seed) {
|
|
85
|
-
let rand;
|
|
86
|
-
if (typeof _seed === 'number') {
|
|
87
|
-
let seed = _seed;
|
|
88
|
-
rand = () => {
|
|
89
|
-
const x = Math.sin(seed++) * 179426549;
|
|
90
|
-
return x - Math.floor(x);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
rand = Math.random;
|
|
95
|
-
}
|
|
96
|
-
for (let i = array.length - 1; i > 0; i -= 1) {
|
|
97
|
-
const j = Math.floor(rand() * (i + 1));
|
|
98
|
-
const temp = array[i];
|
|
99
|
-
array[i] = array[j];
|
|
100
|
-
array[j] = temp;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function mapArrayOrNot(items, fn) {
|
|
104
|
-
return Array.isArray(items) ?
|
|
105
|
-
items.map(fn) :
|
|
106
|
-
fn(items);
|
|
107
|
-
}
|
|
108
|
-
var NeverShowAgainScope;
|
|
109
|
-
( ((function(NeverShowAgainScope) {
|
|
110
|
-
NeverShowAgainScope[NeverShowAgainScope["WORKSPACE"] = 0] = "WORKSPACE";
|
|
111
|
-
NeverShowAgainScope[NeverShowAgainScope["PROFILE"] = 1] = "PROFILE";
|
|
112
|
-
NeverShowAgainScope[NeverShowAgainScope["APPLICATION"] = 2] = "APPLICATION";
|
|
113
|
-
})(NeverShowAgainScope || (NeverShowAgainScope = {}))));
|
|
114
|
-
var NotificationsFilter;
|
|
115
|
-
( ((function(NotificationsFilter) {
|
|
116
|
-
NotificationsFilter[NotificationsFilter["OFF"] = 0] = "OFF";
|
|
117
|
-
NotificationsFilter[NotificationsFilter["SILENT"] = 1] = "SILENT";
|
|
118
|
-
NotificationsFilter[NotificationsFilter["ERROR"] = 2] = "ERROR";
|
|
119
|
-
})(NotificationsFilter || (NotificationsFilter = {}))));
|
|
120
|
-
class NoOpNotification {
|
|
121
|
-
constructor() {
|
|
122
|
-
this.progress = ( (new NoOpProgress()));
|
|
123
|
-
this.onDidClose = Event.None;
|
|
124
|
-
this.onDidChangeVisibility = Event.None;
|
|
125
|
-
}
|
|
126
|
-
updateSeverity(severity) { }
|
|
127
|
-
updateMessage(message) { }
|
|
128
|
-
updateActions(actions) { }
|
|
129
|
-
close() { }
|
|
130
|
-
}
|
|
131
|
-
class NoOpProgress {
|
|
132
|
-
infinite() { }
|
|
133
|
-
done() { }
|
|
134
|
-
total(value) { }
|
|
135
|
-
worked(value) { }
|
|
136
|
-
}
|
|
137
10
|
const IFileService = ( (createDecorator('fileService')));
|
|
138
11
|
var FileType;
|
|
139
12
|
( ((function(FileType) {
|
|
@@ -420,4 +293,4 @@ var Services;
|
|
|
420
293
|
}
|
|
421
294
|
Services.install = install;
|
|
422
295
|
})(Services || (Services = {})));
|
|
423
|
-
export { ACTIVE_GROUP as A,
|
|
296
|
+
export { ACTIVE_GROUP as A, ensureFileSystemProviderError as B, CancellationTokenSource as C, etag as D, FileOperationEvent as E, FileType as F, toFileOperationResult as G, ETAG_DISABLED as H, IFileService as I, hasFileAtomicReadCapability as J, hasFileFolderCopyCapability as K, hasFileCloneCapability as L, createFileSystemProviderError as M, NotModifiedSinceFileOperationError as N, FILES_ASSOCIATIONS_CONFIG as O, Services as S, FilePermission as a, IUriIdentityService as b, IEditorService as c, IPaneCompositePartService as d, ITextFileService as e, IEditorGroupsService as f, IWorkbenchEnvironmentService as g, IWorkingCopyFileService as h, IPathService as i, IProductService as j, ILanguageStatusService as k, IHostService as l, ISnippetsService as m, markAsFileSystemProviderError as n, FileSystemProviderErrorCode as o, productSchemaId as p, SIDE_GROUP as q, refineServiceDecorator as r, isPreferredGroup as s, FileSystemProviderError as t, FileChangesEvent as u, FileOperationError as v, hasOpenReadWriteCloseCapability as w, hasReadWriteCapability as x, hasFileReadStreamCapability as y, toFileSystemProviderErrorCode as z };
|