mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-22 21:00:30 -04:00
Merge from vscode 011858832762aaff245b2336fb1c38166e7a10fb (#4663)
This commit is contained in:
@@ -74,8 +74,8 @@ export class GotoLineAction extends QuickOpenAction {
|
||||
}
|
||||
|
||||
class GotoLineEntry extends EditorQuickOpenEntry {
|
||||
private line: number;
|
||||
private column: number;
|
||||
private line!: number;
|
||||
private column!: number;
|
||||
private handler: GotoLineHandler;
|
||||
|
||||
constructor(line: string, editorService: IEditorService, handler: GotoLineHandler) {
|
||||
@@ -140,7 +140,7 @@ class GotoLineEntry extends EditorQuickOpenEntry {
|
||||
}
|
||||
|
||||
getInput(): IEditorInput | null {
|
||||
return this.editorService.activeEditor || null;
|
||||
return types.withUndefinedAsNull(this.editorService.activeEditor);
|
||||
}
|
||||
|
||||
getOptions(pinned?: boolean): ITextEditorOptions {
|
||||
@@ -218,8 +218,8 @@ export class GotoLineHandler extends QuickOpenHandler {
|
||||
|
||||
static readonly ID = 'workbench.picker.line';
|
||||
|
||||
private rangeHighlightDecorationId: IEditorLineDecoration | null;
|
||||
private lastKnownEditorViewState: IEditorViewState | null;
|
||||
private rangeHighlightDecorationId: IEditorLineDecoration | null = null;
|
||||
private lastKnownEditorViewState: IEditorViewState | null = null;
|
||||
|
||||
constructor(@IEditorService private readonly editorService: IEditorService) {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user