mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
check array.length, not array, fixes #23404
This commit is contained in:
@@ -29,7 +29,7 @@ import EditorContextKeys = editorCommon.EditorContextKeys;
|
||||
function alertFormattingEdits(edits: editorCommon.ISingleEditOperation[]): void {
|
||||
|
||||
edits = edits.filter(edit => edit.range);
|
||||
if (!edits) {
|
||||
if (!edits.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user