mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 11:44:09 -05:00
Fix paneRenaming not affecting source editor (#6611)
This commit is contained in:
committed by
GitHub
parent
cdb59644cc
commit
feb7b35754
@@ -291,6 +291,8 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
|
||||
);
|
||||
}
|
||||
|
||||
// Not using the normal getCurrentState/updateState pattern because the editor does not conform to its own interface
|
||||
// (legacy links!)
|
||||
override updateState(): void {
|
||||
const state = {
|
||||
id: this.id,
|
||||
@@ -300,8 +302,8 @@ export class Editor extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Edit
|
||||
filename: this.filename,
|
||||
};
|
||||
this.fontScale.addState(state);
|
||||
this.paneRenaming.addState(state);
|
||||
this.container.setState(state);
|
||||
|
||||
this.updateButtons();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user