Skip to content

Commit c901a25

Browse files
authored
CodeEditor loading property considered by the Editor (#11034)
1 parent e2d9e39 commit c901a25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> {
504504
showEditor,
505505
options: optionsProp,
506506
overrideServices,
507+
loading,
507508
editorProps
508509
} = this.props;
509510
const shortcutsPopoverProps: PopoverProps = {
@@ -652,6 +653,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> {
652653
onChange={this.onChange}
653654
onMount={this.editorDidMount}
654655
theme={isDarkTheme ? 'vs-dark' : 'vs-light'}
656+
loading={loading}
655657
{...editorProps}
656658
/>
657659
</div>

0 commit comments

Comments
 (0)