Skip to content

Commit

Permalink
add more editor theme
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Feb 27, 2024
1 parent 039c89e commit 94b2cb2
Show file tree
Hide file tree
Showing 6 changed files with 879 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/component/MonacoEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { apply as markerPluginApply } from './plugins/marker';
import { getModelService } from './plugins/ob-language/service';
import logger from '@/util/logger';
import { getFontSize } from './config';
import { apply as themeApply } from './plugins/theme';
export interface IEditor extends monaco.editor.IStandaloneCodeEditor {
doFormat: () => void;
getSelectionContent: () => string;
Expand Down Expand Up @@ -154,6 +155,7 @@ const MonacoEditor: React.FC<IProps> = function (props) {
),
);
markerPluginApply(editorRef.current.getModel());
themeApply();
logger.debug('init plugin done');
}

Expand Down
Loading

0 comments on commit 94b2cb2

Please sign in to comment.