Got json-schema autocomplete working again

This commit is contained in:
Gregory Schier
2024-02-24 16:22:22 -08:00
parent 5bd2d0959a
commit ad890e01b0
3 changed files with 87 additions and 48 deletions

View File

@@ -17,6 +17,7 @@ import {
syntaxHighlighting,
} from '@codemirror/language';
import { lintKeymap } from '@codemirror/lint';
import { highlightSelectionMatches, searchKeymap } from '@codemirror/search';
import { EditorState } from '@codemirror/state';
import {
@@ -85,7 +86,6 @@ const myTheme = EditorView.theme({}, { dark: true });
// ]);
const syntaxExtensions: Record<string, LanguageSupport> = {
'application/grpc': json(), // TODO: Make JSONSchema work
'application/graphql': graphqlLanguageSupport(),
'application/json': json(),
'application/javascript': javascript(),