Skip to content

Commit f9c739f

Browse files
committed
chore: add sourcing info for markupSnippets
1 parent 28fd8a9 commit f9c739f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/extensions/default/CSSCodeHints/unittests.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,6 @@ define(function (require, exports, module) {
256256
testDocument = null;
257257
});
258258

259-
it("should expand m0 to margin: 0; when Emmet hint is used", function () {
260-
testDocument.replaceRange("m0", { line: 6, ch: 2 });
261-
testEditor.setCursorPos({ line: 6, ch: 4 });
262-
263-
selectHint(CSSCodeHints.cssPropHintProvider, "margin: 0;");
264-
expect(testDocument.getLine(6)).toBe(" margin: 0;");
265-
});
266-
267-
268259
it("should insert colon prop-name selected", function () {
269260
// insert semicolon after previous rule to avoid incorrect tokenizing
270261
testDocument.replaceRange(";", { line: 6, ch: 2 });

src/extensionsIntegrated/Emmet/emmet-snippets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
* 1. **markupSnippets**: An object that maps abbreviation keys to their expanded HTML markup.
2929
* These are all the abbreviations that can be expanded into something other than the usual tags.
3030
* When an abbreviation matching one of the markup snippets is passed to Emmet, it knows how to expand it.
31+
* These are sourced from `thirdparty/emmet.es.js`. To update this in future, refer to that file.
32+
*
3133
*
3234
* 2. **htmlTags**: An array of standard HTML tags that are expanded by default.
3335
* This list helps determine whether an abbreviation corresponds to a valid HTML element.

0 commit comments

Comments
 (0)