Skip to content

Commit 2983ce8

Browse files
committed
minor: format editor/code
1 parent bba8d2d commit 2983ce8

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

editors/code/src/client.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ class ExperimentalFeatures implements lc.StaticFeature {
348348
initialize(
349349
_capabilities: lc.ServerCapabilities,
350350
_documentSelector: lc.DocumentSelector | undefined,
351-
): void { }
352-
dispose(): void { }
353-
clear(): void { }
351+
): void {}
352+
dispose(): void {}
353+
clear(): void {}
354354
}
355355

356356
class OverrideFeatures implements lc.StaticFeature {
@@ -368,9 +368,9 @@ class OverrideFeatures implements lc.StaticFeature {
368368
initialize(
369369
_capabilities: lc.ServerCapabilities,
370370
_documentSelector: lc.DocumentSelector | undefined,
371-
): void { }
372-
dispose(): void { }
373-
clear(): void { }
371+
): void {}
372+
dispose(): void {}
373+
clear(): void {}
374374
}
375375

376376
function isCodeActionWithoutEditsAndCommands(value: any): boolean {
@@ -398,8 +398,9 @@ export let HOVER_REFERENCE_COMMAND: ra.CommandLink[] = [];
398398

399399
function renderCommand(cmd: ra.CommandLink): string {
400400
HOVER_REFERENCE_COMMAND.push(cmd);
401-
return `[${cmd.title}](command:rust-analyzer.hoverRefCommandProxy?${HOVER_REFERENCE_COMMAND.length - 1
402-
} '${cmd.tooltip}')`;
401+
return `[${cmd.title}](command:rust-analyzer.hoverRefCommandProxy?${
402+
HOVER_REFERENCE_COMMAND.length - 1
403+
} '${cmd.tooltip}')`;
403404
}
404405

405406
function renderHoverActions(actions: ra.CommandLinkGroup[]): vscode.MarkdownString {

editors/code/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ function isUpdatingTest(runnable: ra.Runnable): boolean {
11451145
}
11461146

11471147
const env = runnable.args.environment;
1148-
return env ? ['UPDATE_EXPECT', 'INSTA_UPDATE', 'SNAPSHOTS'].some(key => key in env) : false;
1148+
return env ? ["UPDATE_EXPECT", "INSTA_UPDATE", "SNAPSHOTS"].some((key) => key in env) : false;
11491149
}
11501150

11511151
export function runSingle(ctx: CtxInit): Cmd {

editors/code/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function createCommands(): Record<string, CommandFactory> {
148148
health: "stopped",
149149
});
150150
},
151-
disabled: (_) => async () => { },
151+
disabled: (_) => async () => {},
152152
},
153153

154154
analyzerStatus: { enabled: commands.analyzerStatus },
@@ -207,10 +207,10 @@ function checkConflictingExtensions() {
207207
vscode.window
208208
.showWarningMessage(
209209
`You have both the rust-analyzer (rust-lang.rust-analyzer) and Rust (rust-lang.rust) ` +
210-
"plugins enabled. These are known to conflict and cause various functions of " +
211-
"both plugins to not work correctly. You should disable one of them.",
210+
"plugins enabled. These are known to conflict and cause various functions of " +
211+
"both plugins to not work correctly. You should disable one of them.",
212212
"Got it",
213213
)
214-
.then(() => { }, console.error);
214+
.then(() => {}, console.error);
215215
}
216216
}

0 commit comments

Comments
 (0)