We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f78af38 commit 081160aCopy full SHA for 081160a
website/src/extensions/main/index.tsx
@@ -392,8 +392,7 @@ export const mainExt: IExtension = {
392
}
393
});
394
395
- molecule.editor.onFocus((item) => {
396
- const groupId = (molecule.editor.getCurrentGroup() || -1) as UniqueId;
+ molecule.editor.onModelMount((_, groupId) => {
397
const tab = molecule.editor.getCurrentTab();
398
if (tab?.id && tab.language) {
399
molecule.editor.setCurrent(tab?.id, groupId);
0 commit comments