Skip to content

Commit 98284d0

Browse files
authored
fix - Jump to formatter page when it's opened (#1362)
1 parent 94fcc60 commit 98284d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/formatter-settings/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ export class JavaFormatterSettingsEditorProvider implements vscode.CustomTextEdi
5656
}
5757

5858
public async showFormatterSettingsEditor(): Promise<void> {
59-
if (this.webviewPanel || !await this.checkProfileSettings() || !this.settingsUrl) {
59+
if (this.webviewPanel) {
60+
this.webviewPanel.reveal();
61+
return;
62+
}
63+
64+
if (!await this.checkProfileSettings() || !this.settingsUrl) {
6065
return;
6166
}
6267
const filePath = this.readOnly ? vscode.Uri.parse(this.settingsUrl).with({ scheme: RemoteProfileProvider.scheme }) : vscode.Uri.file(this.profilePath);

0 commit comments

Comments
 (0)