提交 be85129e 编写于 作者: A Alexandru Dima 提交者: GitHub

Merge pull request #8854 from kisstkondoros/fixforinvisiblecursor

Fixes invisible cursor in long editor lines
......@@ -25,7 +25,6 @@ export class ViewCursors extends ViewPart {
private _readOnly: boolean;
private _cursorBlinking: editorCommon.TextEditorCursorBlinkingStyle;
private _cursorStyle: editorCommon.TextEditorCursorStyle;
private _canUseTranslate3d: boolean;
private _isVisible: boolean;
......@@ -46,7 +45,6 @@ export class ViewCursors extends ViewPart {
this._readOnly = this._context.configuration.editor.readOnly;
this._cursorBlinking = this._context.configuration.editor.viewInfo.cursorBlinking;
this._cursorStyle = this._context.configuration.editor.viewInfo.cursorStyle;
this._canUseTranslate3d = context.configuration.editor.viewInfo.canUseTranslate3d;
this._primaryCursor = new ViewCursor(this._context, false);
this._secondaryCursors = [];
......@@ -153,9 +151,6 @@ export class ViewCursors extends ViewPart {
if (e.viewInfo.cursorStyle) {
this._cursorStyle = this._context.configuration.editor.viewInfo.cursorStyle;
}
if (e.viewInfo.canUseTranslate3d) {
this._canUseTranslate3d = this._context.configuration.editor.viewInfo.canUseTranslate3d;
}
this._primaryCursor.onConfigurationChanged(e);
this._updateBlinking();
......@@ -318,11 +313,5 @@ export class ViewCursors extends ViewPart {
for (var i = 0, len = this._secondaryCursors.length; i < len; i++) {
this._secondaryCursors[i].render(ctx);
}
if (this._canUseTranslate3d) {
this._domNode.setTransform('translate3d(0px, 0px, 0px)');
} else {
this._domNode.setTransform('');
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册