Skip to content

Commit e2f930a

Browse files
authored
fix: Always show the source location in the first column (#1094)
1 parent 5b85a7e commit e2f930a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/commands/testReportCommands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
import { commands, Position, Range, Uri, window } from 'vscode';
4+
import { commands, Position, Range, Uri, ViewColumn, window } from 'vscode';
55
import { resolveStackTraceLocation } from '../utils/commandUtils';
66

77
export async function openStackTrace(trace: string, fullName: string): Promise<void> {
@@ -21,6 +21,7 @@ export async function openStackTrace(trace: string, fullName: string): Promise<v
2121
await window.showTextDocument(Uri.parse(uri), {
2222
preserveFocus: true,
2323
selection: new Range(new Position(lineNumber, 0), new Position(lineNumber + 1, 0)),
24+
viewColumn: ViewColumn.One,
2425
});
2526
} else {
2627
const methodNameGroup: RegExpExecArray | null = /([\w$\.]+\/)?(([\w$]+\.)+[<\w$>]+)\(.*\)/.exec(trace);

0 commit comments

Comments
 (0)