Mark markdown comment folding regions as comments

Fixes #91271
This commit is contained in:
Matt Bierner
2020-03-02 11:26:24 -08:00
parent 7cc0c75e54
commit 6e30cf38a7
2 changed files with 16 additions and 1 deletions

View File

@@ -175,6 +175,18 @@ a`);
assert.strictEqual(firstFold.start, 1);
assert.strictEqual(firstFold.end, 3);
});
test('Should fold html block comments', async () => {
const folds = await getFoldsForDocument(`x
<!--
fa
-->`);
assert.strictEqual(folds.length, 1);
const firstFold = folds[0];
assert.strictEqual(firstFold.start, 1);
assert.strictEqual(firstFold.end, 3);
assert.strictEqual(firstFold.kind, vscode.FoldingRangeKind.Comment);
});
});