Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cba6960

Browse files
committed
Create solution file in Column 1 & without description
1 parent a12d746 commit cba6960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/show.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function showProblemInternal(node: IProblem): Promise<void> {
111111

112112
const originFilePath: string = await leetCodeExecutor.showProblem(node, language, outDir);
113113
const filePath: string = wsl.useWsl() ? await wsl.toWinPath(originFilePath) : originFilePath;
114-
await vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false });
114+
await vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false, viewColumn: vscode.ViewColumn.One });
115115
} catch (error) {
116116
await promptForOpenOutputChannel("Failed to show the problem. Please open the output channel for details.", DialogType.error);
117117
}

src/leetCodeExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class LeetCodeExecutor implements Disposable {
9999
const filePath: string = path.join(outDir, fileName);
100100

101101
if (!await fse.pathExists(filePath)) {
102-
const codeTemplate: string = await this.executeCommandWithProgressEx("Fetching problem data...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", problemNode.id, "-cx", "-l", language]);
102+
const codeTemplate: string = await this.executeCommandWithProgressEx("Fetching problem data...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", problemNode.id, "-c", "-l", language]);
103103
await fse.writeFile(filePath, codeTemplate);
104104
}
105105

0 commit comments

Comments
 (0)