We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7710082 commit dba1694Copy full SHA for dba1694
1 file changed
packages/components/src/utils/shiki/snippet-presets.ts
@@ -10,7 +10,7 @@ type SnippetPreset = {
10
/** Shiki language for syntax highlighting */
11
shikiLanguage: string;
12
/** httpsnippet config for code generation */
13
- httpSnippet: {
+ httpSnippet?: {
14
target: string;
15
client?: string;
16
};
@@ -145,6 +145,11 @@ const SNIPPET_PRESETS: SnippetPreset[] = [
145
shikiLanguage: "dart",
146
httpSnippet: { target: "dart" },
147
},
148
+ {
149
+ key: "toml",
150
+ displayName: "TOML",
151
+ shikiLanguage: "yaml",
152
+ },
153
];
154
155
const presetLookup = new Map<string, SnippetPreset>();
0 commit comments