Move cursor events out of editorCommon

This commit is contained in:
Alex Dima
2017-04-19 02:11:13 +03:00
parent c8ec3ef999
commit a29c3e1c71
30 changed files with 391 additions and 364 deletions

View File

@@ -14,6 +14,7 @@ import { Selection, ISelection } from 'vs/editor/common/core/selection';
import { SnippetController } from 'vs/editor/contrib/snippet/common/snippetController';
import { EndOfLine, TextEditorLineNumbersStyle } from 'vs/workbench/api/node/extHostTypes';
import { TextEditorCursorStyle, cursorStyleToString } from "vs/editor/common/config/editorOptions";
import { ICursorSelectionChangedEvent } from "vs/editor/common/controller/cursorEvents";
export interface ITextEditorConfigurationUpdate {
tabSize?: number | 'auto';
@@ -152,7 +153,7 @@ export class MainThreadTextEditor {
this.setCodeEditor(null);
}));
let forwardSelection = (event?: EditorCommon.ICursorSelectionChangedEvent) => {
let forwardSelection = (event?: ICursorSelectionChangedEvent) => {
this._lastSelection = this._codeEditor.getSelections();
this._onSelectionChanged.fire({
selections: this._lastSelection,