Skip to content

Commit d33a1e4

Browse files
Ecmel ErcanEcmel Ercan
authored andcommitted
Fix issue #9
1 parent ec9efad commit d33a1e4

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CSS support for HTML documents.
44

55
## Features
66

7-
- Style tag completion and hover.
87
- Style attribute completion and hover.
98
- Id attribute completion.
109
- Class attribute completion.

src/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class Snippet {
4242
class StyleServer implements vsc.CompletionItemProvider, vsc.HoverProvider {
4343

4444
private regex = [
45-
/style=["|']([^"^']*$)/i,
46-
/<style[^\<\s\S]*\>([^\<]*)/i
45+
/style=["|']([^"^']*$)/i //,
46+
// /<style[^\<\s\S]*\>([^\<]*)/i
4747
];
4848

4949
private convertCompletionList(list: lst.CompletionList): vsc.CompletionList {
@@ -70,10 +70,10 @@ class StyleServer implements vsc.CompletionItemProvider, vsc.HoverProvider {
7070
return new Snippet('.c {\n' + tag[1], position.character);
7171
}
7272

73-
tag = this.regex[1].exec(text);
74-
if (tag) {
75-
return new Snippet(tag[1], position.character);
76-
}
73+
// tag = this.regex[1].exec(text);
74+
// if (tag) {
75+
// return new Snippet(tag[1], position.character);
76+
// }
7777

7878
return null;
7979
}

0 commit comments

Comments
 (0)