use resize observer

This commit is contained in:
Jan Prochazka
2021-04-01 15:59:15 +02:00
parent fca6b87cb9
commit e748591c10
3 changed files with 15 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ export function registerFileCommands({
name: 'Kill',
icon: 'icon close',
toolbar: true,
testEnabled: () => getCurrentEditor() != null && getCurrentEditor()?.canKill(),
testEnabled: () => getCurrentEditor()?.canKill && getCurrentEditor().canKill(),
onClick: () => getCurrentEditor().kill(),
});
}