feat: toml intellisense + recommended extensions for toml and yaml

This commit is contained in:
lnu 2021-04-05 13:56:37 +02:00 committed by Jan De Dobbeleer
parent 25fd56a71b
commit bb6a90a867
2 changed files with 8 additions and 1 deletions

View file

@ -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"
]
}

View file

@ -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()