Skip to content

Commit e0093b7

Browse files
author
Brad Cornes
committed
fix css context check
1 parent b5daeb4 commit e0093b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lsp/util/css.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TextDocument, Position } from 'vscode-languageserver'
2-
import { isInsideTag, isVueDoc, isSvelteDoc } from './html'
2+
import { isInsideTag, isVueDoc, isSvelteDoc, isHtmlDoc } from './html'
33
import { State } from './state'
44

55
export const CSS_LANGUAGES = [
@@ -28,7 +28,7 @@ export function isCssContext(
2828
return true
2929
}
3030

31-
if (isVueDoc(doc) || isSvelteDoc(doc)) {
31+
if (isHtmlDoc(state, doc) || isVueDoc(doc) || isSvelteDoc(doc)) {
3232
let str = doc.getText({
3333
start: { line: 0, character: 0 },
3434
end: position,

0 commit comments

Comments
 (0)