tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
index 22c66036db3c9fbb8345ccd33311ca842cf92f77..346f2462f95b77ba7635ba884bb65bfaa087a8d3 100644
--- a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
+++ b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts
@@ -23,6 +23,8 @@ import selectorParser from 'postcss-selector-parser'
import { flatten } from '../../../util/array'
import { getClassNameMeta } from '../../util/getClassNameMeta'
CodeAction,
+import { getClassNameParts } from '../../util/getClassNameAtPosition'
+ CodeAction,
TextEdit,
export async function provideInvalidApplyCodeActions(
state: State,
@@ -174,16 +176,21 @@ classNameParts: string[],
selector: string,
important: boolean = false
) {
+ CodeAction,
import {
- return []
+import {
+ CodeAction,
import {
- }
+ CodeAction,
+ CodeAction,
import {
- if (!isCssDoc(state, document)) {
+ CodeActionParams,
+ CodeAction,
const dlv = require('dlv')
-} from 'vscode-languageserver'
+ validatedBaseClassName.isApplyable === false
+ CodeAction,
import {
- if (!languageBoundaries) return []
+ Range,
return null
}
const meta = getClassNameMeta(state, classNameParts)
@@ -222,10 +229,8 @@ if (selector === null) return null
let rule = {
[selector]: {
- [`@apply ${classNameParts[classNameParts.length - 1]}${
+ CodeAction,
import { removeRangesFromString } from '../../util/removeRangesFromString'
-import { InvalidApplyDiagnostic } from '../diagnostics/types'
- }`]: '',
},
}
if (path.length) {