From 57df9bed703bd0f8b7a7cc593152b65b543ad121 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 15:11:30 +0100 Subject: Run prettier --- editors/code/src/ctx.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'editors/code/src/ctx.ts') diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index 9dd2b7d4f..87f1574d3 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -2,30 +2,26 @@ import * as vscode from 'vscode'; import * as lc from 'vscode-languageclient'; import { Server } from './server'; - export class Ctx { - private extCtx: vscode.ExtensionContext + private extCtx: vscode.ExtensionContext; constructor(extCtx: vscode.ExtensionContext) { - this.extCtx = extCtx + this.extCtx = extCtx; } get client(): lc.LanguageClient { - return Server.client + return Server.client; } - registerCommand( - name: string, - factory: (ctx: Ctx) => Cmd, - ) { - const fullName = `rust-analyzer.${name}` + registerCommand(name: string, factory: (ctx: Ctx) => Cmd) { + const fullName = `rust-analyzer.${name}`; const cmd = factory(this); const d = vscode.commands.registerCommand(fullName, cmd); this.pushCleanup(d); } pushCleanup(d: { dispose(): any }) { - this.extCtx.subscriptions.push(d) + this.extCtx.subscriptions.push(d); } } -- cgit v1.2.3