提交 8d30b30e 编写于 作者: A Alex Dima

Let the view get cursor state change events first

上级 2d0ef8fd
......@@ -24,6 +24,10 @@
left: initial !important;
bottom: 0 !important;
right: 0 !important;
color: black !important;
background: white !important;
line-height: 15px !important;
font-size: 14px !important;
}*/
.monaco-editor .inputarea.ime-input {
z-index: 10;
......
......@@ -372,8 +372,11 @@ export class Cursor extends viewEvents.ViewEventEmitter implements ICursors {
const selections = this._cursors.getSelections();
const viewSelections = this._cursors.getViewSelections();
this._onDidChange.fire(new CursorStateChangedEvent(selections, source, reason));
// Let the view get the event first.
this._emit([new viewEvents.ViewCursorStateChangedEvent(viewSelections, isInEditableRange)]);
// Only after the view has been notified, let the rest of the world know...
this._onDidChange.fire(new CursorStateChangedEvent(selections, source, reason));
}
private _revealRange(revealTarget: RevealTarget, verticalType: viewEvents.VerticalRevealType, revealHorizontal: boolean): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册