Fixes #5483: Harden MainThreadTextEditor.matches

This commit is contained in:
Alexandru Dima
2016-04-28 14:45:13 +02:00
parent 07f7bb1644
commit 77af9d75c7

View File

@@ -294,6 +294,9 @@ export class MainThreadTextEditor {
}
public matches(editor: IEditor): boolean {
if (!editor) {
return false;
}
return editor.getControl() === this._codeEditor;
}