@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.
@@ -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 as isObject$1, isUndefinedOrNull as isUndefinedOrNull$1 } from 'monaco-editor/esm/vs/base/common/types.js';
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$1(source[key]) && isObject$1(target[key])) {
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$1(content)) {
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 { transform as A, Barrier as B, isReadableBufferedStream as C, listenStream as D, Emitter as E, bufferedStreamToBuffer as F, readableToBuffer as G, newWriteableBufferStream as H, IExtensionService as I, newWriteableStream as J, IUserDataProfileService as K, IKeyboardLayoutService as L, IPreferencesService as M, NotImplementedError as N, ExtensionMessageCollector as O, parse as P, ITextMateService as Q, ResourceSet as R, getNodeType as S, IBrowserWorkbenchEnvironmentService as T, UserSettings as U, IHostColorSchemeService as V, IUserDataInitializationService as W, Sequencer as X, isProposedApiEnabled as a, readonly as b, checkProposedApiEnabled as c, disposed as d, ILifecycleService as e, IntervalCounter as f, assertAllDefined as g, ExtensionsRegistry as h, isStringArray as i, ILanguageDetectionService as j, IPolicyService as k, IUserDataProfilesService as l, isEmptyObject as m, NullPolicyService as n, format2 as o, getServiceMachineId as p, ResourceQueue as q, raceCancellationError as r, isReadableStream as s, peekStream as t, unsupported as u, peekReadable as v, withUndefinedAsNull as w, bufferToReadable as x, streamToBuffer as y, consumeStream as z };
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 };
@@ -1,6 +1,7 @@
1
1
  import { _ as __decorate, a as __param } from './contextkey.js';
2
- import { j as ILanguageDetectionService, w as withUndefinedAsNull, E as Emitter, u as unsupported } from './missing-services.js';
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';
@@ -0,0 +1,7 @@
1
+ import * as monaco from 'monaco-editor';
2
+
3
+ type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
4
+
5
+ declare function getServiceOverride(container?: HTMLElement): IEditorOverrideServices;
6
+
7
+ export { getServiceOverride as default };