Including ` as part of foldEndPairCharacters (#110108)

* Including '`' as part of foldEndPairCharacters

* Removed test code, which was unrelated
This commit is contained in:
Suman B K 2020-11-10 07:32:38 +05:30 committed by GitHub
parent d04956f6a7
commit 4247b296eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ class TypeScriptFoldingProvider implements vscode.FoldingRangeProvider {
return new vscode.FoldingRange(start, end, kind);
}
private static readonly foldEndPairCharacters = ['}', ']', ')'];
private static readonly foldEndPairCharacters = ['}', ']', ')', '`'];
private adjustFoldingEnd(range: vscode.Range, document: vscode.TextDocument) {
// workaround for #47240