vscode 分机 [tht13.python]:'configuration.jsonValidation.url'

vscode extension [tht13.python]: 'configuration.jsonValidation.url'

我在使用 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,但还是不行。

如何解决这个问题?

您正在使用扩展程序 "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) 扩展非常满意