Skip to content

Commit 0088cb2

Browse files
committed
Fix issue #1
It seems that there was a change on the API and for some reason it will only provide the default HTML IntelliSense if an empty array is returned instead of null.
1 parent b879725 commit 0088cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-css-class-completion/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function activate(context) {
9696
// check if the cursor is on a class attribute and retrieve all the css rules in this class attribute
9797
var rawClasses = text.match(/class=["|']([\w- ]*$)/);
9898
if (rawClasses === null) {
99-
return null;
99+
return [];
100100
}
101101

102102
// will store the classes found on the class attribute

0 commit comments

Comments
 (0)