aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands.ts10
-rw-r--r--editors/code/src/debug.ts2
-rw-r--r--editors/code/src/main.ts10
-rw-r--r--editors/code/src/run.ts2
4 files changed, 12 insertions, 12 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 3469fe5ec..4170b9ccb 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -130,7 +130,7 @@ export function joinLines(ctx: Ctx): Cmd {
130 builder.replace(edit.range, edit.newText); 130 builder.replace(edit.range, edit.newText);
131 }); 131 });
132 }) 132 })
133 .then(() => {}, console.error); 133 .then(() => { }, console.error);
134 }; 134 };
135} 135}
136 136
@@ -248,7 +248,7 @@ export function ssr(ctx: Ctx): Cmd {
248 248
249 await vscode.workspace.applyEdit(client.protocol2CodeConverter.asWorkspaceEdit(edit)); 249 await vscode.workspace.applyEdit(client.protocol2CodeConverter.asWorkspaceEdit(edit));
250 }) 250 })
251 .then(() => {}, console.error); 251 .then(() => { }, console.error);
252 }; 252 };
253} 253}
254 254
@@ -468,7 +468,7 @@ export function showReferences(ctx: Ctx): Cmd {
468 client.protocol2CodeConverter.asPosition(position), 468 client.protocol2CodeConverter.asPosition(position),
469 locations.map(client.protocol2CodeConverter.asLocation), 469 locations.map(client.protocol2CodeConverter.asLocation),
470 ) 470 )
471 .then(() => {}, console.error); 471 .then(() => { }, console.error);
472 } 472 }
473 }; 473 };
474} 474}
@@ -481,7 +481,7 @@ export function applyActionGroup(_ctx: Ctx): Cmd {
481 'rust-analyzer.resolveCodeAction', 481 'rust-analyzer.resolveCodeAction',
482 selectedAction.arguments, 482 selectedAction.arguments,
483 ) 483 )
484 .then(() => {}, console.error); 484 .then(() => { }, console.error);
485 }; 485 };
486} 486}
487 487
@@ -515,7 +515,7 @@ export function openDocs(ctx: Ctx): Cmd {
515 515
516 if (doclink != null) { 516 if (doclink != null) {
517 vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(doclink)) 517 vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(doclink))
518 .then(() => {}, console.error); 518 .then(() => { }, console.error);
519 } 519 }
520 }; 520 };
521 521
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index 0bbaae2b0..3c113e46e 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -79,7 +79,7 @@ async function getDebugConfiguration(ctx: Ctx, runnable: ra.Runnable): Promise<v
79 if (!debugEngine) { 79 if (!debugEngine) {
80 vscode.window.showErrorMessage(`Install [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)` 80 vscode.window.showErrorMessage(`Install [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)`
81 + ` or [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension for debugging.`) 81 + ` or [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension for debugging.`)
82 .then(() => {}, console.error); 82 .then(() => { }, console.error);
83 return; 83 return;
84 } 84 }
85 85
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index a5c728b67..ecbe4e3c9 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -77,7 +77,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
77 ctx = await Ctx.create(config, context, serverPath, workspaceFolder.uri.fsPath); 77 ctx = await Ctx.create(config, context, serverPath, workspaceFolder.uri.fsPath);
78 78
79 setContextValue(RUST_PROJECT_CONTEXT_NAME, true) 79 setContextValue(RUST_PROJECT_CONTEXT_NAME, true)
80 .then(() => {}, console.error); 80 .then(() => { }, console.error);
81 81
82 // Commands which invokes manually via command palette, shortcut, etc. 82 // Commands which invokes manually via command palette, shortcut, etc.
83 83
@@ -144,7 +144,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
144 144
145export async function deactivate() { 145export async function deactivate() {
146 setContextValue(RUST_PROJECT_CONTEXT_NAME, undefined) 146 setContextValue(RUST_PROJECT_CONTEXT_NAME, undefined)
147 .then(() => {}, console.error); 147 .then(() => { }, console.error);
148 await ctx?.client.stop(); 148 await ctx?.client.stop();
149 ctx = undefined; 149 ctx = undefined;
150} 150}
@@ -189,7 +189,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi
189 log.error(e); 189 log.error(e);
190 if (state.releaseId === undefined) { // Show error only for the initial download 190 if (state.releaseId === undefined) { // Show error only for the initial download
191 vscode.window.showErrorMessage(`Failed to download rust-analyzer nightly ${e}`) 191 vscode.window.showErrorMessage(`Failed to download rust-analyzer nightly ${e}`)
192 .then(() => {}, console.error); 192 .then(() => { }, console.error);
193 } 193 }
194 return undefined; 194 return undefined;
195 }); 195 });
@@ -308,7 +308,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
308 "If you feel that your platform should be supported, please create an issue " + 308 "If you feel that your platform should be supported, please create an issue " +
309 "about that [here](https://github.com/rust-analyzer/rust-analyzer/issues) and we " + 309 "about that [here](https://github.com/rust-analyzer/rust-analyzer/issues) and we " +
310 "will consider it." 310 "will consider it."
311 ).then(() => {}, console.error); 311 ).then(() => { }, console.error);
312 return undefined; 312 return undefined;
313 } 313 }
314 const ext = platform.indexOf("-windows-") !== -1 ? ".exe" : ""; 314 const ext = platform.indexOf("-windows-") !== -1 ? ".exe" : "";
@@ -437,6 +437,6 @@ function warnAboutExtensionConflicts() {
437 `You have both the ${fst[0]} (${fst[1]}) and ${sec[0]} (${sec[1]}) ` + 437 `You have both the ${fst[0]} (${fst[1]}) and ${sec[0]} (${sec[1]}) ` +
438 "plugins enabled. These are known to conflict and cause various functions of " + 438 "plugins enabled. These are known to conflict and cause various functions of " +
439 "both plugins to not work correctly. You should disable one of them.", "Got it") 439 "both plugins to not work correctly. You should disable one of them.", "Got it")
440 .then(() => {}, console.error); 440 .then(() => { }, console.error);
441 }; 441 };
442} 442}
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index e30fdb38e..4f0d2884b 100644
--- a/editors/code/src/run.ts
+++ b/editors/code/src/run.ts
@@ -46,7 +46,7 @@ export async function selectRunnable(ctx: Ctx, prevRunnable?: RunnableQuickPick,
46 // it is the debug case, run always has at least 'cargo check ...' 46 // it is the debug case, run always has at least 'cargo check ...'
47 // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables 47 // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables
48 vscode.window.showErrorMessage("There's no debug target!") 48 vscode.window.showErrorMessage("There's no debug target!")
49 .then(() => {}, console.error); 49 .then(() => { }, console.error);
50 return; 50 return;
51 } 51 }
52 52