Sha256: 8713dfe9a2bc295fdab0ae452a6996eaadc0d6416e88ece25d8afe3c4b13082b

Contents?: true

Size: 978 Bytes

Versions: 1

Compression:

Stored size: 978 Bytes

Contents

import { ExtensionContext, Disposable } from 'vscode'
import { isLanguageServerInstalled, promptForInstallTool } from './install-tools'
import { configureLanguageServer } from './language-server'

let disposable: Disposable

// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export async function activate(context: ExtensionContext) {
    // Use the console to output diagnostic information (console.log) and errors (console.error)
    // This line of code will only be executed once when your extension is activated
    // console.log('Congratulations, your extension "yoda" is now active!');

    if (!isLanguageServerInstalled()) {
        await promptForInstallTool()
    }

    const languageServer = configureLanguageServer()

    disposable = languageServer.start()
}

// this method is called when your extension is deactivated
export function deactivate() {
    disposable?.dispose()
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoda-language-server-0.8.0 client/vscode/src/extension.ts