You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/scssCompletion.ts
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -125,57 +125,68 @@ export class SCSSCompletion extends CSSCompletion {
125
125
privatestaticscssAtDirectives=[
126
126
{
127
127
label: "@extend",
128
-
documentation: localize("scss.builtin.@extend","Inherits the styles of another selector.")
128
+
documentation: localize("scss.builtin.@extend","Inherits the styles of another selector."),
129
+
kind: CompletionItemKind.Keyword
129
130
},
130
131
{
131
132
label: "@at-root",
132
-
documentation: localize("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document.")
133
+
documentation: localize("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),
134
+
kind: CompletionItemKind.Keyword
133
135
},
134
136
{
135
137
label: "@debug",
136
-
documentation: localize("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files.")
138
+
documentation: localize("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),
139
+
kind: CompletionItemKind.Keyword
137
140
},
138
141
{
139
142
label: "@warn",
140
-
documentation: localize("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option.")
143
+
documentation: localize("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),
144
+
kind: CompletionItemKind.Keyword
141
145
},
142
146
{
143
147
label: "@error",
144
-
documentation: localize("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions.")
148
+
documentation: localize("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),
149
+
kind: CompletionItemKind.Keyword
145
150
},
146
151
{
147
152
label: "@if",
148
153
documentation: localize("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),
149
154
insertText: "@if ${1:expr} {\n\t$0\n}",
150
-
insertTextFormat: InsertTextFormat.Snippet
155
+
insertTextFormat: InsertTextFormat.Snippet,
156
+
kind: CompletionItemKind.Keyword
151
157
},
152
158
{
153
159
label: "@for",
154
160
documentation: localize("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause.",),
155
161
insertText: "@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",
156
-
insertTextFormat: InsertTextFormat.Snippet
162
+
insertTextFormat: InsertTextFormat.Snippet,
163
+
kind: CompletionItemKind.Keyword
157
164
},
158
165
{
159
166
label: "@each",
160
167
documentation: localize("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`.",),
161
168
insertText: "@each \\$${1:var} in ${2:list} {\n\t$0\n}",
162
-
insertTextFormat: InsertTextFormat.Snippet
169
+
insertTextFormat: InsertTextFormat.Snippet,
170
+
kind: CompletionItemKind.Keyword
163
171
},
164
172
{
165
173
label: "@while",
166
174
documentation: localize("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`.",),
167
175
insertText: "@while ${1:condition} {\n\t$0\n}",
168
-
insertTextFormat: InsertTextFormat.Snippet
176
+
insertTextFormat: InsertTextFormat.Snippet,
177
+
kind: CompletionItemKind.Keyword
169
178
},
170
179
{
171
180
label: "@mixin",
172
181
documentation: localize("scss.builtin.@mixin","Defines styles that can be re-used throughout the stylesheet with `@include`.",),
173
182
insertText: "@mixin ${1:name} {\n\t$0\n}",
174
-
insertTextFormat: InsertTextFormat.Snippet
183
+
insertTextFormat: InsertTextFormat.Snippet,
184
+
kind: CompletionItemKind.Keyword
175
185
},
176
186
{
177
187
label: "@include",
178
-
documentation: localize("scss.builtin.@include","Includes the styles defined by another mixin into the current rule.")
188
+
documentation: localize("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),
0 commit comments