Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 32edae8

Browse files
committed
Merge pull request #1281 from adobe/rlim/code-hints-issue-1277
Don't create an html tag info for an invalid html tag inside a style block or a css file.
2 parents 03d2b45 + d25d1e7 commit 32edae8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/language/HTMLUtils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ define(function (require, exports, module) {
289289
tagInfo,
290290
tokenType;
291291

292+
// check if this is inside a style block.
293+
if (editor.getModeForSelection() !== "html") {
294+
return createTagInfo();
295+
}
296+
292297
//check and see where we are in the tag
293298
if (ctx.token.string.length > 0 && ctx.token.string.trim().length === 0) {
294299

0 commit comments

Comments
 (0)