We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5daeb4 commit e0093b7Copy full SHA for e0093b7
src/lsp/util/css.ts
@@ -1,5 +1,5 @@
1
import { TextDocument, Position } from 'vscode-languageserver'
2
-import { isInsideTag, isVueDoc, isSvelteDoc } from './html'
+import { isInsideTag, isVueDoc, isSvelteDoc, isHtmlDoc } from './html'
3
import { State } from './state'
4
5
export const CSS_LANGUAGES = [
@@ -28,7 +28,7 @@ export function isCssContext(
28
return true
29
}
30
31
- if (isVueDoc(doc) || isSvelteDoc(doc)) {
+ if (isHtmlDoc(state, doc) || isVueDoc(doc) || isSvelteDoc(doc)) {
32
let str = doc.getText({
33
start: { line: 0, character: 0 },
34
end: position,
0 commit comments