vscode扩展名[tht13.python]:'configuration.jsonValidation.url'

时间:2020-04-28 14:50:03

标签: json visual-studio-code vscode-settings

我在使用VSCode时收到此错误通知:

[tht13.python]: 'configuration.jsonValidation.url' must be
                an absolute URL or start with './' to reference 
                schemas located in the extension.

我已找到jsonValidation并将其更改为:

"jsonValidation": [
    {
        "fileMatch": ".condarc",
        "url": "./schemas/condarc.json"
    },
    {
        "fileMatch": "environment.yml",
        "url": "./schemas/conda-environment.json"
    },
    {
        "fileMatch": "meta.yaml",
        "url": "./schemas/conda-meta.json"
    }
]

package.json中,但仍然无法正常工作。

如何解决这个问题?

1 个答案:

答案 0 :(得分:8)

您正在使用扩展名“ Python for VSCode”(tht13.python)。似乎此扩展程序不再受维护(last commit on Jun 13, 2018

也许您应该切换到另一个扩展名。我对Microsoft https://marketplace.visualstudio.com/items?itemName=ms-python.python

的“ Python”(ms-python.python)扩展感到非常满意