@codingame/monaco-vscode-api 1.69.4 → 1.69.5
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 +2 -1
- package/dist/configuration.js +2 -1
- package/dist/dialogs.d.ts +7 -0
- package/dist/dialogs.js +97 -0
- package/dist/extHost.js +2 -1
- package/dist/files.js +1 -1
- package/dist/keybindings.js +1 -1
- package/dist/languageConfiguration.js +1 -1
- package/dist/languageService.js +1 -1
- package/dist/languages.js +1 -1
- package/dist/layout.js +1318 -0
- package/dist/messages.d.ts +3 -0
- package/dist/messages.js +4 -3619
- package/dist/missing-services.js +4 -49
- package/dist/modelEditor.js +2 -1
- package/dist/notifications.d.ts +7 -0
- package/dist/notifications.js +2577 -0
- package/dist/snippets.js +2 -1
- package/dist/textmate.js +2 -2
- package/dist/theme.js +1 -1
- package/dist/tokenClassification.js +1 -1
- package/dist/tools.js +1 -1
- package/dist/types.js +46 -0
- package/package.json +9 -1
package/dist/missing-services.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ProgressBar as ProgressBar$1 } from 'monaco-editor/esm/vs/base/browser/
|
|
|
5
5
|
import { mixin, equals, deepClone, deepFreeze } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
6
6
|
import { RunOnceScheduler, Promises, timeout } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
7
7
|
import { trackFocus, show, hide, createStyleSheet } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
8
|
-
import { isNumber, isObject
|
|
8
|
+
import { isNumber, isObject, isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
9
9
|
import { Color as Color$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
10
10
|
import { LanguageService as LanguageService$1 } from 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
11
11
|
import { LanguagesRegistry as LanguagesRegistry$1 } from 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
@@ -759,51 +759,6 @@ AmbiguousCharacters.cache = ( (new LRUCachedFunction((locales) => {
|
|
|
759
759
|
AmbiguousCharacters._locales = ( (new Lazy(
|
|
760
760
|
() => ( (Object.keys(AmbiguousCharacters.ambiguousCharacterData.getValue()))).filter((k) => !k.startsWith('_'))
|
|
761
761
|
)));
|
|
762
|
-
function isString(str) {
|
|
763
|
-
return (typeof str === 'string');
|
|
764
|
-
}
|
|
765
|
-
function isStringArray(value) {
|
|
766
|
-
return Array.isArray(value) && value.every(elem => isString(elem));
|
|
767
|
-
}
|
|
768
|
-
function isObject(obj) {
|
|
769
|
-
return typeof obj === 'object'
|
|
770
|
-
&& obj !== null
|
|
771
|
-
&& !Array.isArray(obj)
|
|
772
|
-
&& !(obj instanceof RegExp)
|
|
773
|
-
&& !(obj instanceof Date);
|
|
774
|
-
}
|
|
775
|
-
function isUndefined(obj) {
|
|
776
|
-
return (typeof obj === 'undefined');
|
|
777
|
-
}
|
|
778
|
-
function isUndefinedOrNull(obj) {
|
|
779
|
-
return (isUndefined(obj) || obj === null);
|
|
780
|
-
}
|
|
781
|
-
function assertAllDefined(...args) {
|
|
782
|
-
const result = [];
|
|
783
|
-
for (let i = 0; i < args.length; i++) {
|
|
784
|
-
const arg = args[i];
|
|
785
|
-
if (isUndefinedOrNull(arg)) {
|
|
786
|
-
throw new Error(`Assertion Failed: argument at index ${i} is undefined or null`);
|
|
787
|
-
}
|
|
788
|
-
result.push(arg);
|
|
789
|
-
}
|
|
790
|
-
return result;
|
|
791
|
-
}
|
|
792
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
793
|
-
function isEmptyObject(obj) {
|
|
794
|
-
if (!isObject(obj)) {
|
|
795
|
-
return false;
|
|
796
|
-
}
|
|
797
|
-
for (const key in obj) {
|
|
798
|
-
if (hasOwnProperty$1.call(obj, key)) {
|
|
799
|
-
return false;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return true;
|
|
803
|
-
}
|
|
804
|
-
function withUndefinedAsNull(x) {
|
|
805
|
-
return typeof x === 'undefined' ? null : x;
|
|
806
|
-
}
|
|
807
762
|
function raceCancellationError(promise, token) {
|
|
808
763
|
return (
|
|
809
764
|
(new Promise((resolve, reject) => {
|
|
@@ -2739,7 +2694,7 @@ class ConfigurationModel {
|
|
|
2739
2694
|
mergeContents(source, target) {
|
|
2740
2695
|
for (const key of ( (Object.keys(target)))) {
|
|
2741
2696
|
if (key in source) {
|
|
2742
|
-
if (isObject
|
|
2697
|
+
if (isObject(source[key]) && isObject(target[key])) {
|
|
2743
2698
|
this.mergeContents(source[key], target[key]);
|
|
2744
2699
|
continue;
|
|
2745
2700
|
}
|
|
@@ -2829,7 +2784,7 @@ class ConfigurationModelParser {
|
|
|
2829
2784
|
return this._parseErrors;
|
|
2830
2785
|
}
|
|
2831
2786
|
parse(content, options) {
|
|
2832
|
-
if (!isUndefinedOrNull
|
|
2787
|
+
if (!isUndefinedOrNull(content)) {
|
|
2833
2788
|
const raw = this.doParseContent(content);
|
|
2834
2789
|
this.parseRaw(raw, options);
|
|
2835
2790
|
}
|
|
@@ -7437,4 +7392,4 @@ registerSingleton(ISnippetsService, class SnippetsService {
|
|
|
7437
7392
|
this.getSnippetsSync = unsupported;
|
|
7438
7393
|
}
|
|
7439
7394
|
});
|
|
7440
|
-
export {
|
|
7395
|
+
export { readableToBuffer as A, Barrier as B, newWriteableBufferStream as C, newWriteableStream as D, Emitter as E, IUserDataProfileService as F, IKeyboardLayoutService as G, IPreferencesService as H, IExtensionService as I, ExtensionMessageCollector as J, parse as K, ITextMateService as L, getNodeType as M, NotImplementedError as N, IBrowserWorkbenchEnvironmentService as O, IHostColorSchemeService as P, IUserDataInitializationService as Q, ResourceSet as R, Sequencer as S, UserSettings as U, readonly as a, ILifecycleService as b, checkProposedApiEnabled as c, disposed as d, IntervalCounter as e, ExtensionsRegistry as f, ILanguageDetectionService as g, IPolicyService as h, isProposedApiEnabled as i, IUserDataProfilesService as j, NullPolicyService as k, format2 as l, getServiceMachineId as m, ResourceQueue as n, isReadableStream as o, peekStream as p, peekReadable as q, raceCancellationError as r, bufferToReadable as s, streamToBuffer as t, unsupported as u, consumeStream as v, transform as w, isReadableBufferedStream as x, listenStream as y, bufferedStreamToBuffer as z };
|
package/dist/modelEditor.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
2
|
-
import {
|
|
2
|
+
import { g as ILanguageDetectionService, E as Emitter, u as unsupported } from './missing-services.js';
|
|
3
3
|
import { MutableDisposable, Disposable, toDisposable, ImmortalReference, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import { w as withUndefinedAsNull } from './types.js';
|
|
4
5
|
import { ThrottledDelayer } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
5
6
|
import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
6
7
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|