Skip to content

Commit

Permalink
DiffNavigator should not be Disposable, as it's managed by diff editor.
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
  • Loading branch information
AlexTugarev committed Feb 22, 2018
1 parent da65869 commit da62d1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions packages/editor/src/browser/diff-navigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
*/

import { TextEditor } from './editor';
import { Disposable } from '@theia/core/lib/common';

export interface DiffNavigator extends Disposable {
export interface DiffNavigator {
revealFirst: boolean;
canNavigate(): boolean;
hasNext(): boolean;
Expand Down
2 changes: 0 additions & 2 deletions packages/monaco/src/browser/monaco-diff-nagivator-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class MonacoDiffNavigatorFactory {
next: () => { },
previous: () => { },
revealFirst: false,
dispose: () => { },
};

createdDiffNavigator(editor: IStandaloneDiffEditor, options?: IDiffNavigatorOptions): DiffNavigator {
Expand All @@ -44,7 +43,6 @@ export class MonacoDiffNavigatorFactory {
next: () => navigator.next(),
previous: () => navigator.previous(),
revealFirst: navigator.revealFirst,
dispose: () => navigator.dispose(),
};
}
}

0 comments on commit da62d1c

Please sign in to comment.