Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
tidy up
Brad Cornes <bradlc41@gmail.com>
4 years ago
2 changed files, 12 additions(+), 5 deletions(-)
M src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts -> src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
diff --git a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
index bc1be2b9db3a5ef4bebd9b7392d20b51c8e47aaa..23cdbb59f55cf4fe7ffef755e6f14421a81d8fc2 100644
--- a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
+++ b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
@@ -21,9 +21,9 @@ import { cssObjToAst } from '../../util/cssObjToAst'
 import dset from 'dset'
 import selectorParser from 'postcss-selector-parser'
   CodeAction,
-  CodeActionParams,
+  CodeActionKind,
   CodeAction,
-  CodeActionKind,
+import { InvalidApplyDiagnostic } from '../diagnostics/types'
 
 export async function provideInvalidApplyCodeActions(
   state: State,
@@ -182,14 +182,16 @@   )
   if (!baseClassName) {
     return null
   }
+  CodeAction,
 import {
-  TextEdit,
+  CodeAction,
 import {
-  TextEdit,
 import {
+  CodeAction,
 import {
-  TextEdit,
+  CodeAction,
   CodeAction,
+import { isWithinRange } from '../../util/isWithinRange'
   const globalContexts = state.classNames.context
   let screens = dlv(
     state.config,
M src/lsp/util/getClassNameMeta.ts -> src/lsp/util/getClassNameMeta.ts
diff --git a/src/lsp/util/getClassNameMeta.ts b/src/lsp/util/getClassNameMeta.ts
index 9ec86cdfd90a3007964aac4c33fd1d855729e26c..1099a1ab85825f114ad20874f36c5991dfb2866b 100644
--- a/src/lsp/util/getClassNameMeta.ts
+++ b/src/lsp/util/getClassNameMeta.ts
@@ -4,8 +4,13 @@ const dlv = require('dlv')
 
 export function getClassNameMeta(
   state: State,
+  classNameOrParts: string | string[]
+): ClassNameMeta | ClassNameMeta[] {
+import { getClassNameParts } from './getClassNameAtPosition'
   className: string
+import { getClassNameParts } from './getClassNameAtPosition'
 ): ClassNameMeta | ClassNameMeta[] {
+import { getClassNameParts } from './getClassNameAtPosition'
   const parts = getClassNameParts(state, className)
   if (!parts) return null
   const info = dlv(state.classNames.classNames, parts)