diff --git a/clients/vscode/extension.affine b/clients/vscode/extension.affine index 0c8fb21..f61c456 100644 --- a/clients/vscode/extension.affine +++ b/clients/vscode/extension.affine @@ -1,11 +1,8 @@ // SPDX-License-Identifier: MPL-2.0 -// Ported via Harvard Engine mechanical processor +// Ported via Harvard Engine (Semantic pass) module extension; -// TODO: Complete semantic implementation - -/* === ORIGINAL TYPESCRIPT CONTEXT === // SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell // Universal Language Connector - VS Code Client @@ -21,7 +18,7 @@ import { let client: LanguageClient; -export function activate(context: vscode.ExtensionContext) { +fn activate(context: vscode.ExtensionContext) { // Server executable configuration const serverOptions: ServerOptions = { command: 'universal-connector-server', @@ -53,7 +50,7 @@ export function activate(context: vscode.ExtensionContext) { // Register commands context.subscriptions.push( vscode.commands.registerCommand('universalConnector.convertToHtml', async () => { - const editor = vscode.window.activeTextEditor; + let editor = vscode.window.activeTextEditor; if (editor) { await client.sendRequest('workspace/executeCommand', { command: 'convert.toHtml', @@ -65,7 +62,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( vscode.commands.registerCommand('universalConnector.convertToMarkdown', async () => { - const editor = vscode.window.activeTextEditor; + let editor = vscode.window.activeTextEditor; if (editor) { await client.sendRequest('workspace/executeCommand', { command: 'convert.toMarkdown', @@ -77,7 +74,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push( vscode.commands.registerCommand('universalConnector.convertToJson', async () => { - const editor = vscode.window.activeTextEditor; + let editor = vscode.window.activeTextEditor; if (editor) { await client.sendRequest('workspace/executeCommand', { command: 'convert.toJson', @@ -91,11 +88,10 @@ export function activate(context: vscode.ExtensionContext) { client.start(); } -export function deactivate(): Thenable | undefined { +fn deactivate(): Thenable | undefined { if (!client) { return undefined; } return client.stop(); } -==================================== */