Skip to content

Commit 10eaeb8

Browse files
committed
fix: css hints getting displayed even when the css property is fully specified
1 parent 9e7efdc commit 10eaeb8

File tree

1 file changed

+6
-0
lines changed
  • src/extensions/default/CSSCodeHints

1 file changed

+6
-0
lines changed

src/extensions/default/CSSCodeHints/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,12 @@ define(function (require, exports, module) {
687687
this.editor.setCursorPos(newCursor);
688688
}
689689

690+
// If the current line ends with a semicolon, the CSS property is fully specified,
691+
// so we don't need to continue showing hints for its value.
692+
if(this.editor.getLine(start.line).trim().endsWith(';')) {
693+
keepHints = false;
694+
}
695+
690696
return keepHints;
691697
};
692698

0 commit comments

Comments
 (0)