Skip to content

Commit aa87e05

Browse files
committed
fix(diffView): set default view column to -1 for proper initialization
1 parent 6b2e8a4 commit aa87e05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/integrations/editor/DiffViewProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export class DiffViewProvider {
2929
private rooOpenedTabs: Set<string> = new Set()
3030
private preserveFocus: boolean = false
3131
private autoFocus: boolean = true
32-
private viewColumn: ViewColumn = ViewColumn.Active
32+
// have to set the default view column to -1 since we need to set it in the initialize method and during initialization the enum ViewColumn is undefined
33+
private viewColumn: ViewColumn = -1 // ViewColumn.Active
3334

3435
constructor(private cwd: string) {}
3536

0 commit comments

Comments
 (0)