Skip to content

Commit

Permalink
fix - Jump to formatter page when it's opened (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Jul 3, 2024
1 parent 94fcc60 commit 98284d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/formatter-settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ export class JavaFormatterSettingsEditorProvider implements vscode.CustomTextEdi
}

public async showFormatterSettingsEditor(): Promise<void> {
if (this.webviewPanel || !await this.checkProfileSettings() || !this.settingsUrl) {
if (this.webviewPanel) {
this.webviewPanel.reveal();
return;
}

if (!await this.checkProfileSettings() || !this.settingsUrl) {
return;
}
const filePath = this.readOnly ? vscode.Uri.parse(this.settingsUrl).with({ scheme: RemoteProfileProvider.scheme }) : vscode.Uri.file(this.profilePath);
Expand Down

0 comments on commit 98284d0

Please sign in to comment.