Skip to content

Commit

Permalink
update code highlighting theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Jan 22, 2025
1 parent 0dbdd18 commit f6c8a5d
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 429 deletions.
1 change: 0 additions & 1 deletion spx-gui/src/components/editor/code-editor/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export function useProvideCodeEditorCtx(
const monacoQueryRet = useQuery<Monaco>(async () => {
const [monaco, highlighter] = await Promise.all([getMonaco(i18n.lang.value), getHighlighter()])
monaco.languages.register({ id: 'spx' })
// TODO: this causes extra-padding issue when rendering selection
shikiToMonaco(highlighter, monaco)
monaco.languages.setLanguageConfiguration('spx', spxLanguageConfiguration)
return monaco
Expand Down
Loading

0 comments on commit f6c8a5d

Please sign in to comment.