mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-25 19:14:50 -08:00
feat: toml intellisense + recommended extensions for toml and yaml
This commit is contained in:
parent
25fd56a71b
commit
bb6a90a867
4
.vscode/extensions.json
vendored
4
.vscode/extensions.json
vendored
|
@ -6,6 +6,8 @@
|
|||
"github.vscode-pull-request-github",
|
||||
"esbenp.prettier-vscode",
|
||||
"davidanson.vscode-markdownlint",
|
||||
"yzhang.markdown-all-in-one"
|
||||
"yzhang.markdown-all-in-one",
|
||||
"bungcip.better-toml",
|
||||
"redhat.vscode-yaml"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -142,6 +142,11 @@ func exportConfig(configFile, format string) string {
|
|||
prefix := "# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\n\n"
|
||||
content := buf.String()
|
||||
return prefix + content
|
||||
|
||||
case config.Toml:
|
||||
prefix := "#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\n\n"
|
||||
content := buf.String()
|
||||
return prefix + content
|
||||
}
|
||||
|
||||
return buf.String()
|
||||
|
|
Loading…
Reference in a new issue