@codingame/monaco-vscode-api 1.69.18 → 1.69.20

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.
@@ -598,6 +598,7 @@ InjectedConfigurationService = ( __decorate([
598
598
  ], InjectedConfigurationService));
599
599
  function initialize(instantiationService) {
600
600
  instantiationService.createInstance(RegisterConfigurationSchemasContribution);
601
+ void updateUserConfiguration('{}');
601
602
  }
602
603
  function getServiceOverride() {
603
604
  onServicesInitialized(initialize);
@@ -496,7 +496,7 @@ interface IUserFriendlyCommand {
496
496
  }
497
497
  declare function setKeybindings(grammars: ContributedKeyBinding | ContributedKeyBinding[], extension?: IExtensionDescription): void;
498
498
  declare function setCommands(keybindings: IUserFriendlyCommand | IUserFriendlyCommand[], extension?: IExtensionDescription): void;
499
- declare function updateUserKeybindings(keybindingsJson: string): void;
499
+ declare function updateUserKeybindings(keybindingsJson: string): Promise<void>;
500
500
  declare function getServiceOverride(): IEditorOverrideServices;
501
501
 
502
502
  export { ContributedKeyBinding, IUserFriendlyKeybinding, getServiceOverride as default, setCommands, setKeybindings, updateUserKeybindings };
@@ -4477,9 +4477,9 @@ function setCommands(keybindings, extension = Services.get().extension ?? DEFAUL
4477
4477
  collector: new ExtensionMessageCollector(consoleExtensionMessageHandler, extension, keybindingsExtensionPoint.name)
4478
4478
  }]);
4479
4479
  }
4480
- function updateUserKeybindings(keybindingsJson) {
4480
+ async function updateUserKeybindings(keybindingsJson) {
4481
4481
  const userDataProfilesService = StandaloneServices.get(IUserDataProfilesService);
4482
- void StandaloneServices.get(IFileService).writeFile(userDataProfilesService.defaultProfile.keybindingsResource, VSBuffer.fromString(keybindingsJson));
4482
+ await StandaloneServices.get(IFileService).writeFile(userDataProfilesService.defaultProfile.keybindingsResource, VSBuffer.fromString(keybindingsJson));
4483
4483
  }
4484
4484
  function getServiceOverride() {
4485
4485
  return {
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.raw = void 0;
3
4
  const monacoPolyfillLoader = function (source) {
4
5
  if (this.resourcePath.endsWith('monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js')) {
5
- return `${source}
6
+ return `${source.toString()}
6
7
  export function setSnippetSuggestSupport(support) {
7
8
  const old = _snippetSuggestSupport;
8
9
  _snippetSuggestSupport = support;
@@ -13,3 +14,4 @@ export function setSnippetSuggestSupport(support) {
13
14
  return source;
14
15
  };
15
16
  exports.default = monacoPolyfillLoader;
17
+ exports.raw = true; // for TTFs, see https://stackoverflow.com/questions/48824081/webpack-image-loader-encoding-breaks
@@ -1,3 +1,4 @@
1
1
  import type { RawLoaderDefinitionFunction } from 'webpack';
2
2
  declare const monacoPolyfillLoader: RawLoaderDefinitionFunction;
3
3
  export default monacoPolyfillLoader;
4
+ export declare const raw = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.69.18",
3
+ "version": "1.69.20",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],