mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Add null annotations for x: T[] = null
This code pattern indicates that the type should be nullable
This commit is contained in:
@@ -32,7 +32,7 @@ export class MainThreadTextEditorProperties {
|
||||
}
|
||||
|
||||
private static _readSelectionsFromCodeEditor(previousProperties: MainThreadTextEditorProperties, codeEditor: ICodeEditor): Selection[] {
|
||||
let result: Selection[] = null;
|
||||
let result: Selection[] | null = null;
|
||||
if (codeEditor) {
|
||||
result = codeEditor.getSelections();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user