From 5c4ad3bab8f265c6ba072472bdce9c56e871627a Mon Sep 17 00:00:00 2001 From: Luv Kapur Date: Mon, 11 Nov 2024 14:10:14 -0500 Subject: [PATCH] bump monaco editor in api ref --- components/ui/code-editor/code-editor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/ui/code-editor/code-editor.tsx b/components/ui/code-editor/code-editor.tsx index c56d0937febb..6b84e650da28 100644 --- a/components/ui/code-editor/code-editor.tsx +++ b/components/ui/code-editor/code-editor.tsx @@ -1,9 +1,11 @@ import React from 'react'; import classnames from 'classnames'; -import { OnMount, BeforeMount, OnChange, EditorProps } from '@monaco-editor/react'; +import { OnMount, BeforeMount, OnChange, EditorProps, loader } from '@monaco-editor/react'; import * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; import { darkMode } from '@teambit/base-ui.theme.dark-theme'; +loader.config({ paths: { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.48.0/min/vs' } }); + export type CodeEditorProps = { filePath?: string; fileContent?: string;