mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
getPreferredEditorId return undefined instead of null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user