Skip to content

Commit b7e3f22

Browse files
committed
make new editor pinned
1 parent 4ae30e0 commit b7e3f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/show.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function showProblemInternal(id: string): Promise<void> {
4747
const reg: RegExp = /\* Source Code:\s*(.*)/;
4848
const match: RegExpMatchArray | null = result.match(reg);
4949
if (match && match.length >= 2) {
50-
await vscode.window.showTextDocument(vscode.Uri.file(match[1].trim()));
50+
await vscode.window.showTextDocument(vscode.Uri.file(match[1].trim()), { preview: false });
5151
} else {
5252
throw new Error("Failed to fetch the problem information");
5353
}

0 commit comments

Comments
 (0)