Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions editors/vscode/client/tools/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,19 +319,19 @@ export default class FormatterTool implements ToolInterface {

async restartClient(): Promise<void> {
if (this.client === undefined) {
window.showErrorMessage("oxc client not found");
window.showErrorMessage("oxfmt client not found");
return;
}

try {
if (this.client.isRunning()) {
await this.client.restart();
window.showInformationMessage("oxc server restarted.");
window.showInformationMessage("oxfmt server restarted.");
} else {
await this.client.start();
}
} catch (err) {
this.client.error("Restarting client failed", err, "force");
this.client.error("Restarting oxfmt client failed", err, "force");
}
}

Expand Down
6 changes: 3 additions & 3 deletions editors/vscode/client/tools/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,19 @@ export default class LinterTool implements ToolInterface {

async restartClient(): Promise<void> {
if (this.client === undefined) {
window.showErrorMessage("oxc client not found");
window.showErrorMessage("oxlint client not found");
return;
}

try {
if (this.client.isRunning()) {
await this.client.restart();
window.showInformationMessage("oxc server restarted.");
window.showInformationMessage("oxlint server restarted.");
} else {
await this.client.start();
}
} catch (err) {
this.client.error("Restarting client failed", err, "force");
this.client.error("Restarting oxlint client failed", err, "force");
}
}

Expand Down
Loading