Skip to content
Prev Previous commit
Change the setting name
  • Loading branch information
jdneo committed Feb 16, 2019
commit 3e3cb77562b09d1f12f6ea37c83dad56cf31943f
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
],
"description": "Endpoint of the user account."
},
"leetcode.outputPath": {
"leetcode.outputFolder": {
"type": "string",
"scope": "application",
"description": "Specify the relative path to save the problem files."
Expand Down
2 changes: 1 addition & 1 deletion src/commands/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function showProblemInternal(node: IProblem): Promise<void> {
}

let outDir: string = await selectWorkspaceFolder();
let relativePath: string = (leetCodeConfig.get<string>("outputPath") || "").trim();
let relativePath: string = (leetCodeConfig.get<string>("outputFolder") || "").trim();
const matchResult: RegExpMatchArray | null = relativePath.match(/\$\{(.*?)\}/);
if (matchResult) {
const resolvedPath: string | undefined = await resolveRelativePath(matchResult[1].toLocaleLowerCase(), node, language);
Expand Down