From f0c5ca916b52c58897ff802e9ce15d2127912474 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 12 Jan 2025 09:00:32 -0600 Subject: [PATCH] format --- editors/code/src/extension.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index ac34fa34..3d18e72f 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts @@ -19,7 +19,7 @@ import * as utils from "./utils"; export type PlatformContext = { client: LanguageClient | undefined }; export type AddArgCallback = ( argument: string, - mode?: "All" | "Prod" | "Debug" + mode?: "All" | "Prod" | "Debug", ) => void; let client: LanguageClient | undefined = undefined; @@ -43,7 +43,7 @@ const getFFlags = async () => { () => fetch(CURRENT_FFLAGS) .then((r) => r.json() as Promise) - .then((r) => r.applicationSettings) + .then((r) => r.applicationSettings), ); }; @@ -87,7 +87,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { if (vscode.workspace.workspaceFolders) { uri = utils.resolveUri( vscode.workspace.workspaceFolders[0].uri, - definitionPath + definitionPath, ); } else { uri = vscode.Uri.file(definitionPath); @@ -96,7 +96,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { addArg(`--definitions=${uri.fsPath}`); } else { vscode.window.showWarningMessage( - `Definitions file at ${definitionPath} does not exist, types will not be provided from this file` + `Definitions file at ${definitionPath} does not exist, types will not be provided from this file`, ); } } @@ -111,7 +111,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { if (vscode.workspace.workspaceFolders) { uri = utils.resolveUri( vscode.workspace.workspaceFolders[0].uri, - documentationPath + documentationPath, ); } else { uri = vscode.Uri.file(documentationPath); @@ -120,7 +120,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { addArg(`--docs=${uri.fsPath}`); } else { vscode.window.showWarningMessage( - `Documentations file at ${documentationPath} does not exist` + `Documentations file at ${documentationPath} does not exist`, ); } } @@ -150,7 +150,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { } } catch (err) { vscode.window.showWarningMessage( - "Failed to fetch current Luau FFlags: " + err + "Failed to fetch current Luau FFlags: " + err, ); } } @@ -168,7 +168,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { for (let [name, value] of Object.entries(overridenFFlags)) { if (!isAlphanumericUnderscore(name)) { vscode.window.showWarningMessage( - `Invalid FFlag name: '${name}'. It can only contain alphanumeric characters` + `Invalid FFlag name: '${name}'. It can only contain alphanumeric characters`, ); } @@ -190,7 +190,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { : vscode.Uri.joinPath( context.extensionUri, "bin", - os.platform() === "win32" ? "server.exe" : "server" + os.platform() === "win32" ? "server.exe" : "server", ).fsPath; const run: Executable = { @@ -232,7 +232,7 @@ const startLanguageServer = async (context: vscode.ExtensionContext) => { "luau", "Luau Language Server", serverOptions, - clientOptions + clientOptions, ); platformContext.client = client; @@ -263,7 +263,7 @@ export async function activate(context: vscode.ExtensionContext) { if (client) { client.sendNotification("$/flushTimeTrace"); } - }) + }), ); context.subscriptions.push( @@ -272,7 +272,7 @@ export async function activate(context: vscode.ExtensionContext) { vscode.window .showInformationMessage( "Luau FFlags have been changed, reload server for this to take effect.", - "Reload Language Server" + "Reload Language Server", ) .then((command) => { if (command === "Reload Language Server") { @@ -286,7 +286,7 @@ export async function activate(context: vscode.ExtensionContext) { vscode.window .showInformationMessage( "Luau type definitions have been changed, reload server for this to take effect.", - "Reload Language Server" + "Reload Language Server", ) .then((command) => { if (command === "Reload Language Server") { @@ -294,7 +294,7 @@ export async function activate(context: vscode.ExtensionContext) { } }); } - }) + }), ); await startLanguageServer(context);