提交 eb1cf4b0 编写于 作者: I isidor

diffReview: use insertAdajentText instead of insertAdjacentHTML

fixes #115224
上级 e06ef891
......@@ -734,12 +734,12 @@ export class DiffReview extends Disposable {
let lineContent: string;
if (modifiedLine !== 0) {
cell.insertAdjacentHTML('beforeend',
cell.insertAdjacentText('beforeend',
this._renderLine(modifiedModel, modifiedOptions, modifiedModelOpts.tabSize, modifiedLine)
);
lineContent = modifiedModel.getLineContent(modifiedLine);
} else {
cell.insertAdjacentHTML('beforeend',
cell.insertAdjacentText('beforeend',
this._renderLine(originalModel, originalOptions, originalModelOpts.tabSize, originalLine)
);
lineContent = originalModel.getLineContent(originalLine);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册