diff options
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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 | ||
145 | export async function deactivate() { | 145 | export 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 | } |