Skip to content

Commit fcc918a

Browse files
authored
Merge pull request #1311 from platers/fix-sidebar-custom-commands
Update OpenFile to Make it Set Active Focus After API Update
2 parents 223be97 + 3192462 commit fcc918a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ export default class LinterPlugin extends Plugin {
10211021
await this.customCommandsLock.acquire('command', async () => {
10221022
this.currentlyOpeningSidebar = true;
10231023

1024-
await sidebarTab.openFile(file);
1024+
await sidebarTab.openFile(file, {active: true});
10251025
this.rulesRunner.runCustomCommands(this.settings.lintCommands, this.app.commands);
10261026
if (this.customCommandsCallback) {
10271027
await this.customCommandsCallback(file);

0 commit comments

Comments
 (0)