mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Fixes #5483: Harden MainThreadTextEditor.matches
This commit is contained in:
@@ -294,6 +294,9 @@ export class MainThreadTextEditor {
|
||||
}
|
||||
|
||||
public matches(editor: IEditor): boolean {
|
||||
if (!editor) {
|
||||
return false;
|
||||
}
|
||||
return editor.getControl() === this._codeEditor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user