File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ function setCommands (keybindings: IUserFriendlyCommand | IUserFriendlyCommand[]
119119 } ] )
120120}
121121
122- function updateUserKeybindings ( keybindingsJson : string ) : void {
122+ async function updateUserKeybindings ( keybindingsJson : string ) : Promise < void > {
123123 const userDataProfilesService : IUserDataProfilesService = StandaloneServices . get ( IUserDataProfilesService )
124- void StandaloneServices . get ( IFileService ) . writeFile ( userDataProfilesService . defaultProfile . keybindingsResource , VSBuffer . fromString ( keybindingsJson ) )
124+ await StandaloneServices . get ( IFileService ) . writeFile ( userDataProfilesService . defaultProfile . keybindingsResource , VSBuffer . fromString ( keybindingsJson ) )
125125}
126126
127127export default function getServiceOverride ( ) : IEditorOverrideServices {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { RawLoaderDefinitionFunction } from 'webpack'
22
33const monacoPolyfillLoader : RawLoaderDefinitionFunction = function ( source ) {
44 if ( this . resourcePath . endsWith ( 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js' ) ) {
5- return `${ source }
5+ return `${ source . toString ( ) }
66export function setSnippetSuggestSupport(support) {
77 const old = _snippetSuggestSupport;
88 _snippetSuggestSupport = support;
@@ -14,3 +14,4 @@ export function setSnippetSuggestSupport(support) {
1414}
1515
1616export default monacoPolyfillLoader
17+ export const raw = true // for TTFs, see https://stackoverflow.com/questions/48824081/webpack-image-loader-encoding-breaks
You can’t perform that action at this time.
0 commit comments