File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,13 @@ export function reloadUI(): Promise<void> {
118118 return syscall ( "editor.reloadUI" ) ;
119119}
120120
121+ /**
122+ * Rebuilds the editor state to ensure the dispatch updates the state.
123+ */
124+ export function rebuildEditorState ( ) {
125+ return syscall ( "editor.rebuildEditorState" ) ;
126+ }
127+
121128/**
122129 * Reloads the config and commands, also in the server
123130 */
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ export function editorSyscalls(client: Client): SysCallMapping {
6464 "editor.reloadUI" : ( ) => {
6565 location . reload ( ) ;
6666 } ,
67+ "editor.rebuildEditorState" : ( ) => {
68+ client . rebuildEditorState ( ) ;
69+ } ,
6770 "editor.reloadConfigAndCommands" : async ( ) => {
6871 await client . loadConfig ( ) ;
6972
You can’t perform that action at this time.
0 commit comments