From 2b07856867eb8614d5bfa9d87cf45f3d0ff883e4 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 15 Jul 2019 15:03:33 -0700 Subject: [PATCH] getPreferredEditorId return undefined instead of null --- src/vs/workbench/common/editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/common/editor.ts b/src/vs/workbench/common/editor.ts index 48aa2c77ac4..22088d08cb8 100644 --- a/src/vs/workbench/common/editor.ts +++ b/src/vs/workbench/common/editor.ts @@ -380,12 +380,12 @@ export abstract class EditorInput extends Disposable implements IEditorInput { * Returns the preferred editor for this input. A list of candidate editors is passed in that whee registered * for the input. This allows subclasses to decide late which editor to use for the input on a case by case basis. */ - getPreferredEditorId(candidates: string[]): string | null { + getPreferredEditorId(candidates: string[]): string | undefined { if (candidates.length > 0) { return candidates[0]; } - return null; + return undefined; } /**