From e26071d96e1ff56289213dbe78415f836de8a70e Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 8 Oct 2018 22:38:33 +0100 Subject: Run prettier on all files --- editors/code/src/extension.ts | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'editors/code/src/extension.ts') diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index 44e74f4cc..81e1107a0 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts @@ -23,26 +23,34 @@ export function activate(context: vscode.ExtensionContext) { registerCommand('ra-lsp.joinLines', commands.joinLines.handle); registerCommand('ra-lsp.parentModule', commands.parentModule.handle); registerCommand('ra-lsp.run', commands.runnables.handle); - registerCommand('ra-lsp.applySourceChange', commands.applySourceChange.handle); + registerCommand( + 'ra-lsp.applySourceChange', + commands.applySourceChange.handle + ); // Notifications are events triggered by the language server - const allNotifications: Iterable<[string, lc.GenericNotificationHandler]> = [ - ['m/publishDecorations', notifications.publishDecorations.handle], - ]; + const allNotifications: Iterable< + [string, lc.GenericNotificationHandler] + > = [['m/publishDecorations', notifications.publishDecorations.handle]]; // The events below are plain old javascript events, triggered and handled by vscode - vscode.window.onDidChangeActiveTextEditor(events.changeActiveTextEditor.handle); + vscode.window.onDidChangeActiveTextEditor( + events.changeActiveTextEditor.handle + ); const textDocumentContentProvider = new TextDocumentContentProvider(); - disposeOnDeactivation(vscode.workspace.registerTextDocumentContentProvider( - 'ra-lsp', - textDocumentContentProvider, - )); + disposeOnDeactivation( + vscode.workspace.registerTextDocumentContentProvider( + 'ra-lsp', + textDocumentContentProvider + ) + ); vscode.workspace.onDidChangeTextDocument( events.changeTextDocument.createHandler(textDocumentContentProvider), null, - context.subscriptions); + context.subscriptions + ); // Start the language server, finally! Server.start(allNotifications); -- cgit v1.2.3