about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSahandevs <sahandevs@gmail.com>2021-02-07 21:59:06 +0330
committerSahandevs <sahandevs@gmail.com>2021-02-07 21:59:06 +0330
commit3a0234d60f924cdec4a3fa2fccfe7ed85567f0bc (patch)
tree9753eb1ba2ffe2ec720058cb7c2041ae0f6d97cf
parent1bb4e973ffaffd78a01ba5abb90096d11a2ddb42 (diff)
downloadrust-3a0234d60f924cdec4a3fa2fccfe7ed85567f0bc.tar.gz
rust-3a0234d60f924cdec4a3fa2fccfe7ed85567f0bc.zip
format
-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 3469fe5ec45..4170b9ccbd7 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -130,7 +130,7 @@ export function joinLines(ctx: Ctx): Cmd {
                 builder.replace(edit.range, edit.newText);
             });
         })
-        .then(() => {}, console.error);
+            .then(() => { }, console.error);
     };
 }
 
@@ -248,7 +248,7 @@ export function ssr(ctx: Ctx): Cmd {
 
             await vscode.workspace.applyEdit(client.protocol2CodeConverter.asWorkspaceEdit(edit));
         })
-        .then(() => {}, console.error);
+            .then(() => { }, console.error);
     };
 }
 
@@ -468,7 +468,7 @@ export function showReferences(ctx: Ctx): Cmd {
                 client.protocol2CodeConverter.asPosition(position),
                 locations.map(client.protocol2CodeConverter.asLocation),
             )
-            .then(() => {}, console.error);
+                .then(() => { }, console.error);
         }
     };
 }
@@ -481,7 +481,7 @@ export function applyActionGroup(_ctx: Ctx): Cmd {
             'rust-analyzer.resolveCodeAction',
             selectedAction.arguments,
         )
-        .then(() => {}, console.error);
+            .then(() => { }, console.error);
     };
 }
 
@@ -515,7 +515,7 @@ export function openDocs(ctx: Ctx): Cmd {
 
         if (doclink != null) {
             vscode.commands.executeCommand("vscode.open", vscode.Uri.parse(doclink))
-                .then(() => {}, console.error);
+                .then(() => { }, console.error);
         }
     };
 
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index 0bbaae2b0ab..3c113e46eb2 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
     if (!debugEngine) {
         vscode.window.showErrorMessage(`Install [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)`
             + ` or [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension for debugging.`)
-            .then(() => {}, console.error);
+            .then(() => { }, console.error);
         return;
     }
 
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index a5c728b6755..ecbe4e3c98d 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -77,7 +77,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
     ctx = await Ctx.create(config, context, serverPath, workspaceFolder.uri.fsPath);
 
     setContextValue(RUST_PROJECT_CONTEXT_NAME, true)
-        .then(() => {}, console.error);
+        .then(() => { }, console.error);
 
     // Commands which invokes manually via command palette, shortcut, etc.
 
@@ -144,7 +144,7 @@ async function tryActivate(context: vscode.ExtensionContext) {
 
 export async function deactivate() {
     setContextValue(RUST_PROJECT_CONTEXT_NAME, undefined)
-        .then(() => {}, console.error);
+        .then(() => { }, console.error);
     await ctx?.client.stop();
     ctx = undefined;
 }
@@ -189,7 +189,7 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi
         log.error(e);
         if (state.releaseId === undefined) { // Show error only for the initial download
             vscode.window.showErrorMessage(`Failed to download rust-analyzer nightly ${e}`)
-                .then(() => {}, console.error);
+                .then(() => { }, console.error);
         }
         return undefined;
     });
@@ -308,7 +308,7 @@ async function getServer(config: Config, state: PersistentState): Promise<string
             "If you feel that your platform should be supported, please create an issue " +
             "about that [here](https://github.com/rust-analyzer/rust-analyzer/issues) and we " +
             "will consider it."
-        ).then(() => {}, console.error);
+        ).then(() => { }, console.error);
         return undefined;
     }
     const ext = platform.indexOf("-windows-") !== -1 ? ".exe" : "";
@@ -437,6 +437,6 @@ function warnAboutExtensionConflicts() {
             `You have both the ${fst[0]} (${fst[1]}) and ${sec[0]} (${sec[1]}) ` +
             "plugins enabled. These are known to conflict and cause various functions of " +
             "both plugins to not work correctly. You should disable one of them.", "Got it")
-            .then(() => {}, console.error);
+            .then(() => { }, console.error);
     };
 }
diff --git a/editors/code/src/run.ts b/editors/code/src/run.ts
index e30fdb38e67..4f0d2884b03 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,
         // it is the debug case, run always has at least 'cargo check ...'
         // see crates\rust-analyzer\src\main_loop\handlers.rs, handle_runnables
         vscode.window.showErrorMessage("There's no debug target!")
-            .then(() => {}, console.error);
+            .then(() => { }, console.error);
         return;
     }