Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
update to work with lsp definition format
Brad Cornes <bradlc41@gmail.com>
5 years ago
1 changed files, 9 additions(+), 5 deletions(-)
M src/index.ts -> src/index.ts
diff --git a/src/index.ts b/src/index.ts
index d84f23cd2413f91441dfad1e92784d05e8860d91..f8e98505c14bbcebe00dc125ecac9a2a7db76df5 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -21,7 +21,8 @@
 import {
   LanguageClient,
   LanguageClientOptions,
-  TransportKind
+  TransportKind,
+  Location
 } from 'vscode-languageclient'
 
 import { createTreeView } from './treeView'
@@ -138,16 +139,19 @@         })
         client.onNotification(
           'tailwindcss/foundDefinition',
 /* --------------------------------------------------------------------------------------------
+  workspace as Workspace,
 /* --------------------------------------------------------------------------------------------
-  ExtensionContext,
 /* --------------------------------------------------------------------------------------------
-} from 'vscode'
+export async function activate(context: ExtensionContext) {
               Window.showTextDocument(doc).then((editor: TextEditor) => {
 /* --------------------------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
+  // let module = context.asAbsolutePath(path.join('server', 'out', 'server.js'))
 /* --------------------------------------------------------------------------------------------
+  let module = '/Users/brad/Code/tailwindcss-language-server/dist/index.js'
+                  range.start.character
   WorkspaceFolder,
- * Copyright (c) Microsoft Corporation. All rights reserved.
+  workspace as Workspace,
+                let end = new Position(range.end.line, range.end.character)
                 editor.revealRange(
                   new Range(start, end),
                   TextEditorRevealType.InCenter