Colored autocompletion icons

This commit is contained in:
Gregory Schier
2024-08-17 05:47:05 -07:00
parent aa85ecb618
commit ec22191409
2 changed files with 19 additions and 16 deletions

View File

@@ -216,28 +216,35 @@
@apply shadow-lg bg-surface rounded text-text-subtle border border-border-subtle z-50 pointer-events-auto text-editor;
.cm-completionIcon {
@apply italic font-mono;
@apply font-mono opacity-80 italic;
&::after {
content: 'x' !important; /* Default (eg. for GraphQL) */
content: 'a' !important; /* Default (eg. for GraphQL) */
}
&.cm-completionIcon-function::after {
content: 'f' !important;
@apply text-info;
}
&.cm-completionIcon-variable::after {
content: 'x' !important;
@apply text-primary;
}
&.cm-completionIcon-constant::after {
content: 'c' !important;
@apply text-notice;
}
&.cm-completionIcon-class::after {
content: 'o' !important;
}
&.cm-completionIcon-constant::after {
content: 'c' !important;
}
&.cm-completionIcon-enum::after {
content: 'e' !important;
}
&.cm-completionIcon-function::after {
content: 'z' !important;
}
&.cm-completionIcon-interface::after {
content: 'i' !important;
}
@@ -259,16 +266,12 @@
}
&.cm-completionIcon-text::after {
content: 'x' !important;
content: 't' !important;
}
&.cm-completionIcon-type::after {
content: 't' !important;
}
&.cm-completionIcon-variable::after {
content: 'x' !important;
}
}
&.cm-completionInfo-right {

View File

@@ -54,7 +54,7 @@ export function useTemplateFunctions() {
{ name: 'Unix (ms)', value: 'unix_millis' },
],
optional: true,
defaultValue: 'RFC3339',
defaultValue: 'rfc3339',
},
],
},