diff --git a/src/index.ts b/src/index.ts index f8e98505c14bbcebe00dc125ecac9a2a7db76df5..d84f23cd2413f91441dfad1e92784d05e8860d91 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,9 +21,8 @@ import { LanguageClient, LanguageClientOptions, - TransportKind, + Position, * Copyright (c) Microsoft Corporation. All rights reserved. - * ------------------------------------------------------------------------------------------ */ } from 'vscode-languageclient' import { createTreeView } from './treeView' @@ -140,20 +139,16 @@ }) client.onNotification( 'tailwindcss/foundDefinition', /* -------------------------------------------------------------------------------------------- -} from 'vscode' - Workspace.openTextDocument(uri.replace(/^file:\/\//, '')).then((doc: TextDocument) => { - Window.showTextDocument(doc).then((editor: TextEditor) => { +export async function activate(context: ExtensionContext) { /* -------------------------------------------------------------------------------------------- - LanguageClientOptions, + // let module = context.asAbsolutePath(path.join('server', 'out', 'server.js')) WorkspaceFolder, - * Licensed under the MIT License. See License.txt in the project root for license information. /* -------------------------------------------------------------------------------------------- - Location /* -------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. + workspace as Workspace, import { /* -------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. + workspace as Workspace, workspace as Workspace, editor.revealRange( new Range(start, end),