We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ae30e0 commit b7e3f22Copy full SHA for b7e3f22
src/commands/show.ts
@@ -47,7 +47,7 @@ async function showProblemInternal(id: string): Promise<void> {
47
const reg: RegExp = /\* Source Code:\s*(.*)/;
48
const match: RegExpMatchArray | null = result.match(reg);
49
if (match && match.length >= 2) {
50
- await vscode.window.showTextDocument(vscode.Uri.file(match[1].trim()));
+ await vscode.window.showTextDocument(vscode.Uri.file(match[1].trim()), { preview: false });
51
} else {
52
throw new Error("Failed to fetch the problem information");
53
}
0 commit comments