ccagml / leetcode-extension

Solved LeetCode problem in VS Code added some new features
https://marketplace.visualstudio.com/items?itemName=ccagml.vscode-leetcode-problem-rating
MIT License
288 stars 30 forks source link

使用${tag} 作为文件夹名称不生效 #159

Closed CTCSU closed 1 year ago

CTCSU commented 1 year ago

🐛 Bug Report(错误报告)

通过search problem 选择题目时,文件夹名称配置的${tag} 不生效。

To Reproduce(重现)

我的关于leet code vscode 的配置:

  1. 配置

    "leetcode-problem-rating.defaultLanguage": "java",
    "leetcode-problem-rating.endpoint": "leetcode-cn",
    "leetcode-problem-rating.filePath": {
        "default": {
            // file name
            "filename": "${id}.${kebab-case-name}.${ext}",
            // relative folder path
            "folder": ""
        },
        "java": {
            "filename": "${id}.${kebab-case-name}.${ext}",
            "folder": "${tag}-${difficulty}/java"
        }
    },
    "leetcode-problem-rating.hint.commandShortcut": false,
    "leetcode-problem-rating.hint.commentDescription": false,
    "leetcode-problem-rating.hint.configWebviewMarkdown": false,
    "leetcode-problem-rating.useEndpointTranslation": false,
    "leetcode-problem-rating.workspaceFolder": "d:\\.leetcode",
  2. search problem 选择其中一个题目,例如70. climbing stars

  3. 查看生成的文件及文件夹的属性,生成的文件夹名字为: ./-easy/java,预期带上tag 例如Dynamic Programming

Your Environment

ccagml commented 1 year ago

@CTCSU 感谢!2.12.2