在 VSCode 的 settings.json 中,错误:“尚未完全支持草稿 2019-09 架构。(768)”

Smi*_*ght 6 powershell jsonschema visual-studio-code

我的目标是按照 Hanselman 的说明配置我的 PowerShell 终端提示:https: //www.hanselman.com/blog/how-to-make-a-pretty-prompt-in-windows-terminal-with-powerline-nerd-卡斯卡迪亚字体代码 wsl 和 ohmyposh

看来我能够执行所提供的指令。提示正在按照我的预期在 Windows 终端中呈现: windows 终端

但不是在 VSCode 终端: vscode 终端

VSCode 提出了这个“问题”: vscode schema 问题

我的 VSCode settings.json 文本在这里:

// 此文件最初由 Windows Terminal 1.3.2651.0 生成 // 它应该仍然可以在较新的版本中使用,但较新的版本可能具有其他 // 设置、帮助文本或除非清除此文件否则您不会看到的更改 / / 让我们为您生成一个新的。

// 要查看默认设置,请按住“alt”并单击“设置”按钮。// 有关这些设置的文档,请参阅: https: //aka.ms/terminal-documentation

"$schema": "https://aka.ms/terminal-profiles-schema",

"defaultProfile": "***",

// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings

// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": false,

// If enabled, formatted data is also copied to your clipboard
"copyFormatting": false,

// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
//   and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles":
{
    "defaults":
    {
        // Put settings here that you want to apply to all profiles.
        "guid": "***",
        "hidden": false,
        "name": "PowerShell Core",
        "source": "Windows.Terminal.PowershellCore",
        "fontFace": "Cascadia Code PL",
        "terminal.integrated.fontFamily": "Cascadia Code PL"
    },
    "list":
    [
        {
            "guid": "***",
            "hidden": false,
            "name": "PowerShell Core",
            "source": "Windows.Terminal.PowershellCore"
        },
        {
            "guid": "***",
            "hidden": false,
            "name": "Ubuntu",
            "source": "Windows.Terminal.Wsl"
        },
        {
            "guid": "***",
            "name": "Command Prompt",
            "commandline": "cmd.exe",
            "hidden": false
        },
        {
            "guid": "***",
            "hidden": false,
            "name": "Azure Cloud Shell",
            "source": "Windows.Terminal.Azure"
        },
        {
            "guid": "***",
            "hidden": false,
            "name": "PowerShell Core",
            "source": "Windows.Terminal.PowershellCore"
        }
    ]
},

// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],

// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
    // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
    // These two lines additionally bind them to Ctrl+C and Ctrl+V.
    // To learn more about selection, visit https://aka.ms/terminal-selection
    { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
    { "command": "paste", "keys": "ctrl+v" },

    // Press Ctrl+Shift+F to open the search box
    { "command": "find", "keys": "ctrl+shift+f" },

    // Press Alt+Shift+D to open a new pane.
    // - "split": "auto" makes this pane open in the direction that provides the most surface area.
    // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
    // To learn more about panes, visit https://aka.ms/terminal-panes
    { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
]
Run Code Online (Sandbox Code Playgroud)

}