-
Notifications
You must be signed in to change notification settings - Fork 665
leetcode.outputFolder not work #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jjeejj, The setting To solve your problem, we have several related tracking issues here:
It could be great if you would like to give it a shot for contributing them. 😄 BTW, I'm closing this issue since it's somehow duplicated with existing issues. |
@jjeejj const leetCodeConfig: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("leetcode");
let outDir: string = await selectWorkspaceFolder();
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);
if (!resolvedPath) {
leetCodeChannel.appendLine("Showing problem canceled by user.");
return;
}
relativePath = resolvedPath;
}
outDir = path.join(outDir, relativePath); the config If the open workspace is inconsistent with the previous one, leetcode.outputFolder relative path corresponding actual path is different. Why not? |
You are correct. The config Just as I have said before. If there is a setting to specify the workspace path for the leetcode files (That's what #130 talks about), then it will be confusing if |
I don't think so. because i can open one folder in any path , use leetcode extension |
The extension can detect if the path is opened in the current workspace. If not, prompt the user to open it or add it into the current workspace Open a file which does not belong to the current workspace is the thing that I hope to get avoid. That's why I make the In short: The setting which will be added in #130 determines the leetcode specific workspace path, and it will defaults to |
that menas ,I can't use this feature right now ? I hope the config
|
set
"leetcode.outputFolder": "E:/study/leetcode/${difficulty}/${tag}/${language}",
is not workit generate file in vscode currently open workspace

version: 1.33.1 (user setup)
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 6.1.7601
LeetCode extend is latest version
The text was updated successfully, but these errors were encountered: