@codingame/monaco-vscode-api 1.69.6 → 1.69.9

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/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, w as NotificationsFilter, S as Services } from './services2.js';
2
- export { C as ContextKeyExprType } from './contextkey.js';
1
+ export { b as IEditorGroupsService, I as IEditorService, i as IFileService, o as IHostService, n as ILanguageStatusService, g as IPaneCompositePartService, l as IPathService, c as IProductService, q as ISnippetsService, h as ITextFileService, f as IUriIdentityService, j as IWorkbenchEnvironmentService, k 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
@@ -1,139 +1,13 @@
1
1
  import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
2
2
  import { IEnvironmentService } from 'monaco-editor/esm/vs/platform/environment/common/environment.js';
3
+ import './contextkey.js';
3
4
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
4
5
  import { localize } from 'monaco-editor/esm/vs/nls.js';
5
6
  import { TernarySearchTree } from 'monaco-editor/esm/vs/base/common/map.js';
6
- import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
7
7
  function refineServiceDecorator(serviceIdentifier) {
8
8
  return serviceIdentifier;
9
9
  }
10
10
  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
11
  const IFileService = ( (createDecorator('fileService')));
138
12
  var FileType;
139
13
  ( ((function(FileType) {
@@ -420,4 +294,4 @@ var Services;
420
294
  }
421
295
  Services.install = install;
422
296
  })(Services || (Services = {})));
423
- export { ACTIVE_GROUP as A, FileChangesEvent as B, CancellationTokenSource as C, FileOperationError as D, hasOpenReadWriteCloseCapability as E, FileType as F, hasReadWriteCapability as G, hasFileReadStreamCapability as H, IFileService as I, toFileSystemProviderErrorCode as J, ensureFileSystemProviderError as K, etag as L, FileOperationEvent as M, NoOpNotification as N, toFileOperationResult as O, ETAG_DISABLED as P, hasFileAtomicReadCapability as Q, NotModifiedSinceFileOperationError as R, Services as S, hasFileFolderCopyCapability as T, hasFileCloneCapability as U, createFileSystemProviderError as V, index as W, flatten as X, FILES_ASSOCIATIONS_CONFIG as Y, 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, coalesceInPlace as n, markAsFileSystemProviderError as o, productSchemaId as p, FileSystemProviderErrorCode as q, refineServiceDecorator as r, shuffle as s, mapArrayOrNot as t, SIDE_GROUP as u, delta as v, NotificationsFilter as w, NeverShowAgainScope as x, isPreferredGroup as y, FileSystemProviderError as z };
297
+ 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, IEditorService 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, IEditorGroupsService as b, IProductService as c, FileSystemProviderErrorCode as d, SIDE_GROUP as e, IUriIdentityService as f, IPaneCompositePartService as g, ITextFileService as h, IFileService as i, IWorkbenchEnvironmentService as j, IWorkingCopyFileService as k, IPathService as l, markAsFileSystemProviderError as m, ILanguageStatusService as n, IHostService as o, productSchemaId as p, ISnippetsService 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 };
package/dist/snippets.js CHANGED
@@ -1,5 +1,6 @@
1
- import { F as IUserDataProfileService, b as ILifecycleService, J as ExtensionMessageCollector, K as parse, M as getNodeType, f as ExtensionsRegistry } from './missing-services.js';
2
- import { m as ISnippetsService, I as IFileService, e as ITextFileService, S as Services } from './services2.js';
1
+ import { k as parse, m as getNodeType } from './polyfill.js';
2
+ import { j as ExtensionMessageCollector, l as IUserDataProfileService, b as ILifecycleService, E as ExtensionsRegistry } from './missing-services.js';
3
+ import { q as ISnippetsService, S as Services, i as IFileService, h as ITextFileService } from './services2.js';
3
4
  import { _ as __decorate, a as __param } from './contextkey.js';
4
5
  import * as monacoSuggest from 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js';
5
6
  import { extname as extname$1, basename as basename$1 } from 'monaco-editor/esm/vs/base/common/path.js';
@@ -16,12 +17,12 @@ import { bd as DEFAULT_EXTENSION, bk as Range$2 } from './extHost.js';
16
17
  import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
17
18
  import { getWordAtText } from 'monaco-editor/esm/vs/editor/common/core/wordHelper.js';
18
19
  import { isPatternInWord } from 'monaco-editor/esm/vs/base/common/filters.js';
19
- import { compareSubstring, compare, isFalsyOrWhitespace } from 'monaco-editor/esm/vs/base/common/strings.js';
20
+ import { compareSubstring, isFalsyOrWhitespace, compare } from 'monaco-editor/esm/vs/base/common/strings.js';
20
21
  import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
21
22
  import { ILanguageConfigurationService } from 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
22
23
  import { MarkdownString } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
23
24
  import { StopWatch } from 'monaco-editor/esm/vs/base/common/stopwatch.js';
24
- import { I as IExtensionResourceLoaderService, r as registerExtensionFile } from './files.js';
25
+ import { r as registerExtensionFile, I as IExtensionResourceLoaderService } from './files.js';
25
26
  import { i as isStringArray } from './types.js';
26
27
  import { DisposableStore, combinedDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
27
28
  import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
package/dist/textmate.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { _ as __decorate, a as __param } from './contextkey.js';
2
- import { f as ExtensionsRegistry, J as ExtensionMessageCollector, L as ITextMateService, E as Emitter } from './missing-services.js';
3
- export { L as ITextMateService } from './missing-services.js';
2
+ import { E as Emitter } from './polyfill.js';
3
+ import { j as ExtensionMessageCollector, n as ITextMateService, E as ExtensionsRegistry } from './missing-services.js';
4
+ export { n as ITextMateService } from './missing-services.js';
4
5
  import { l as languagesExtPoint } from './languageService.js';
5
6
  import { localize } from 'monaco-editor/esm/vs/nls.js';
6
7
  import { I as IWorkbenchThemeService } from './workbenchThemeService.js';
7
8
  import { Disposable, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
8
9
  import { joinPath, isEqualOrParent, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
9
- import { I as IExtensionResourceLoaderService, r as registerExtensionFile, g as getServiceOverride$1 } from './files.js';
10
+ import { r as registerExtensionFile, g as getServiceOverride$1, I as IExtensionResourceLoaderService } from './files.js';
10
11
  import { TokenizationRegistry, EncodedTokenizationResult } from 'monaco-editor/esm/vs/editor/common/languages.js';
11
12
  import { TokenMetadata } from 'monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js';
12
13
  import { createStyleSheet } from 'monaco-editor/esm/vs/base/browser/dom.js';
package/dist/theme.js CHANGED
@@ -1,11 +1,12 @@
1
- import { I as IExtensionService, O as IBrowserWorkbenchEnvironmentService, P as IHostColorSchemeService, Q as IUserDataInitializationService, f as ExtensionsRegistry, E as Emitter, S as Sequencer, J as ExtensionMessageCollector, K as parse$1, M as getNodeType } from './missing-services.js';
1
+ import { E as Emitter, k as parse$1, m as getNodeType } from './polyfill.js';
2
+ import { E as ExtensionsRegistry, j as ExtensionMessageCollector, S as Sequencer, I as IExtensionService, o as IBrowserWorkbenchEnvironmentService, p as IHostColorSchemeService, q as IUserDataInitializationService } from './missing-services.js';
2
3
  import { _ as __decorate, a as __param } from './contextkey.js';
3
- import { V as VS_DARK_THEME, a as VS_LIGHT_THEME, b as VS_HC_THEME, c as VS_HC_LIGHT_THEME, T as ThemeSettings, E as ExtensionData, d as THEME_SCOPE_OPEN_PAREN, e as THEME_SCOPE_CLOSE_PAREN, f as THEME_SCOPE_WILDCARD, t as themeScopeRegex } from './workbenchThemeService.js';
4
- import { workbenchColorsSchemaId, editorBackground, editorForeground, editorSelectionBackground, editorInactiveSelection, editorSelectionHighlight, editorFindMatchHighlight, editorFindMatch, editorHoverHighlight, editorFindRangeHighlight, asCssVariableName, Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
4
+ import { T as ThemeSettings, E as ExtensionData, V as VS_DARK_THEME, a as VS_LIGHT_THEME, b as VS_HC_THEME, c as VS_HC_LIGHT_THEME, d as THEME_SCOPE_OPEN_PAREN, e as THEME_SCOPE_CLOSE_PAREN, f as THEME_SCOPE_WILDCARD, t as themeScopeRegex } from './workbenchThemeService.js';
5
+ import { editorBackground, editorForeground, editorSelectionBackground, editorInactiveSelection, editorSelectionHighlight, editorFindMatchHighlight, editorFindMatch, editorHoverHighlight, editorFindRangeHighlight, workbenchColorsSchemaId, asCssVariableName, Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
5
6
  import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
6
7
  import { editorLineHighlight, editorRangeHighlight, editorCursorForeground, editorWhitespaces, editorIndentGuides, editorActiveIndentGuides } from 'monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js';
7
8
  import { g as getParseErrorMessage } from './jsonErrorMessages.js';
8
- import { g as getTokenClassificationRegistry, t as tokenStylingSchemaId, T as TokenStyle, p as parseClassifierString, S as SemanticTokenRule } from './tokenClassificationRegistry.js';
9
+ import { t as tokenStylingSchemaId, T as TokenStyle, p as parseClassifierString, S as SemanticTokenRule, g as getTokenClassificationRegistry } from './tokenClassificationRegistry.js';
9
10
  import { isUndefined, isString, isObject, isArray, isBoolean } from 'monaco-editor/esm/vs/base/common/types.js';
10
11
  import { ColorScheme } from 'monaco-editor/esm/vs/platform/theme/common/theme.js';
11
12
  import { IThemeService, getThemeTypeSelector, ThemeIcon, Extensions as Extensions$3 } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
@@ -16,11 +17,11 @@ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform
16
17
  import { getIconRegistry, iconsSchemaId, IconFontDefinition } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
17
18
  import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
18
19
  import { createStyleSheet, asCSSUrl } from 'monaco-editor/esm/vs/base/browser/dom.js';
19
- import { I as IExtensionResourceLoaderService, r as registerExtensionFile, g as getServiceOverride$1, a as getRemoteAuthority } from './files.js';
20
+ import { r as registerExtensionFile, g as getServiceOverride$1, a as getRemoteAuthority, I as IExtensionResourceLoaderService } from './files.js';
20
21
  import { I as IWorkbenchLayoutService } from './layoutService.js';
21
22
  import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
22
23
  import { isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
23
- import { I as IFileService, S as Services } from './services2.js';
24
+ import { S as Services, i as IFileService } from './services2.js';
24
25
  import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
25
26
  import { getIconsStyleSheet } from 'monaco-editor/esm/vs/platform/theme/browser/iconsStyleSheet.js';
26
27
  import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
@@ -1,4 +1,5 @@
1
- import { f as ExtensionsRegistry, J as ExtensionMessageCollector } from './missing-services.js';
1
+ import './polyfill.js';
2
+ import { j as ExtensionMessageCollector, E as ExtensionsRegistry } from './missing-services.js';
2
3
  import { g as getTokenClassificationRegistry, a as typeAndModifierIdPattern } from './tokenClassificationRegistry.js';
3
4
  import { localize } from 'monaco-editor/esm/vs/nls.js';
4
5
  import { g as getExtensionPoint, c as consoleExtensionMessageHandler, o as onServicesInitialized } from './tools.js';
@@ -1,4 +1,4 @@
1
- import { E as Emitter } from './missing-services.js';
1
+ import { E as Emitter } from './polyfill.js';
2
2
  import { localize } from 'monaco-editor/esm/vs/nls.js';
3
3
  import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
4
4
  import { Extensions } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
package/dist/tools.js CHANGED
@@ -1,5 +1,6 @@
1
- import { f as ExtensionsRegistry } from './missing-services.js';
1
+ import { E as ExtensionsRegistry } from './missing-services.js';
2
2
  import { EventEmitter } from 'vscode';
3
+ import './services2.js';
3
4
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
4
5
  import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
5
6
  function consoleExtensionMessageHandler(msg) {
@@ -1,3 +1,4 @@
1
+ import './polyfill.js';
1
2
  import { u as unsupported } from './missing-services.js';
2
3
  import { S as Services } from './services2.js';
3
4
  import { IWorkspaceContextService, WorkspaceFolder } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.69.6",
3
+ "version": "1.69.9",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],