@codingame/monaco-vscode-api 1.69.18 → 1.69.19
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/keybindings.d.ts
CHANGED
|
@@ -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 };
|
package/dist/keybindings.js
CHANGED
|
@@ -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
|
-
|
|
4482
|
+
await StandaloneServices.get(IFileService).writeFile(userDataProfilesService.defaultProfile.keybindingsResource, VSBuffer.fromString(keybindingsJson));
|
|
4483
4483
|
}
|
|
4484
4484
|
function getServiceOverride() {
|
|
4485
4485
|
return {
|
package/dist/webpack-loader.cjs
CHANGED
|
@@ -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
|
package/dist/webpack-loader.d.ts
CHANGED