Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
import types only
Brad Cornes <bradlc41@gmail.com>
4 years ago
5 changed files, 9 additions(+), 9 deletions(-)
M packages/tailwindcss-language-service/package.json -> packages/tailwindcss-language-service/package.json
diff --git a/packages/tailwindcss-language-service/package.json b/packages/tailwindcss-language-service/package.json
index 3ef5ac66861dc80d789981149f69dd0031d2d44d..537064b8264f38da8b5e8ecbb15182103102ed49 100644
--- a/packages/tailwindcss-language-service/package.json
+++ b/packages/tailwindcss-language-service/package.json
@@ -1,6 +1,7 @@
 {
   "name": "tailwindcss-language-service",
   "version": "0.0.1",
+  "typings": "dist/index.d.ts",
   "main": "dist/index.js",
   "typings": "dist/index.d.ts",
   "files": [
M packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts -> packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts
diff --git a/packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts b/packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts
index 5dd074c44272995b6082d83d10a1a3bb3cd38b83..4bca931bbab17ae1880ba4145dd6008863eaea26 100644
--- a/packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts
+++ b/packages/tailwindcss-language-service/src/codeActions/codeActionProvider.ts
@@ -1,4 +1,4 @@
-import { CodeAction, CodeActionParams } from 'vscode-languageserver'
+import type { CodeAction, CodeActionParams } from 'vscode-languageserver'
 import { State } from '../util/state'
 import { doValidate } from '../diagnostics/diagnosticsProvider'
 import { rangesEqual } from '../util/rangesEqual'
M packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts -> packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts
diff --git a/packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts b/packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts
index b2c3bf83dac05e076faa8b9c5757a1c641c7ab13..41f5f7eb84886535f22e61b84683ecf939b0906a 100644
--- a/packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts
+++ b/packages/tailwindcss-language-service/src/codeActions/provideCssConflictCodeActions.ts
@@ -1,8 +1,7 @@
 import { State } from '../util/state'
-import {
+import type {
   CodeActionParams,
   CodeAction,
-  CodeActionKind,
 } from 'vscode-languageserver'
 import { CssConflictDiagnostic } from '../diagnostics/types'
 import { joinWithAnd } from '../util/joinWithAnd'
@@ -20,7 +19,7 @@         diagnostic.otherClassNames.map(
           (otherClassName) => `'${otherClassName.className}'`
         )
       )}`,
-      kind: CodeActionKind.QuickFix,
+      kind: 'quickfix', // CodeActionKind.QuickFix,
       diagnostics: [diagnostic],
       edit: {
         changes: {
M packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts -> packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts
diff --git a/packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts b/packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts
index ce9839a937350cedd82c6b866eb355e873c080e7..226bc41fa131a922cfdaac04c1053a9a5b1be74d 100644
--- a/packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts
+++ b/packages/tailwindcss-language-service/src/codeActions/provideInvalidApplyCodeActions.ts
@@ -1,7 +1,8 @@
+  CodeAction,
 import {
+  CodeAction,
   CodeAction,
   CodeActionParams,
-  CodeActionKind,
   TextEdit,
   Range,
 } from 'vscode-languageserver'
@@ -146,8 +147,8 @@
   return [
     {
       title: 'Extract to new rule',
-import {
   CodeAction,
+import {
   CodeActionParams,
       diagnostics: [diagnostic],
       edit: {
M packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts -> packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts
diff --git a/packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts b/packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts
index bb8040bb70557626ae73475975e4f163e881df46..2b95b9df97cab75e05565908552f97981e58c748 100644
--- a/packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts
+++ b/packages/tailwindcss-language-service/src/codeActions/provideSuggestionCodeActions.ts
@@ -1,8 +1,7 @@
 import { State } from '../util/state'
-import {
+import type {
   CodeActionParams,
   CodeAction,
-  CodeActionKind,
 } from 'vscode-languageserver'
 import {
   InvalidConfigPathDiagnostic,
@@ -22,7 +21,7 @@     | InvalidVariantDiagnostic
 ): CodeAction[] {
   return diagnostic.suggestions.map((suggestion) => ({
     title: `Replace with '${suggestion}'`,
-    kind: CodeActionKind.QuickFix,
+    kind: 'quickfix', // CodeActionKind.QuickFix,
     diagnostics: [diagnostic],
     edit: {
       changes: {