mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-08-17 00:00:26 +03:00
parent
5dd3810926
commit
f7a3ff5e30
@ -16,6 +16,16 @@ class DecorationImpl {
|
||||
private _markDecorationCache = new Map<string, vscode.TextEditorDecorationType>();
|
||||
|
||||
private _createMarkDecoration(name: string): vscode.TextEditorDecorationType {
|
||||
const escape: Record<string, string> = {
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'&': '&',
|
||||
'"': '"',
|
||||
"'": ''',
|
||||
};
|
||||
if (name in escape) {
|
||||
name = escape[name];
|
||||
}
|
||||
const svg = [
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30px" height="30px">',
|
||||
'<style>text { font-family: sans-serif; font-size: 0.8em; }</style>',
|
||||
|
Loading…
Reference in New Issue
Block a user