We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2615a1 + 0c50778 commit cfd646bCopy full SHA for cfd646b
src/features/htmlContribution.ts
@@ -86,12 +86,13 @@ function autoCloseHtmlTags (editor: monaco.editor.ICodeEditor): monaco.IDisposab
86
range.endColumn + rangeLength + enclosingTag.length + 1
87
)
88
89
+ const selections = editor.getSelections()
90
const rest = model.getValueInRange(newRange)
- model.applyEdits([{
91
+ editor.executeEdits('autoclosing', [{
92
range: newRange,
93
text: `</${enclosingTag}>${rest}`,
94
forceMoveMarkers: true
- }])
95
+ }], selections ?? undefined)
96
}
97
}, 100)
98
}))
0 commit comments