diff --git a/src/components/files/file-workspace-panel.tsx b/src/components/files/file-workspace-panel.tsx index c69db6e..ca14b33 100644 --- a/src/components/files/file-workspace-panel.tsx +++ b/src/components/files/file-workspace-panel.tsx @@ -1563,38 +1563,44 @@ export function FileWorkspacePanel() { )}
- { - if (!isFileTab) return - updateActiveFileContent(value ?? "") - }} - language={activeFileTab.language} - theme={editorTheme} - loading={ -
- {t("loadingEditor")} -
- } - options={{ - readOnly: !canEdit, - minimap: { enabled: false }, - automaticLayout: true, - fontSize: 13, - lineNumbersMinChars, - lineDecorationsWidth: 10, - wordWrap: "off", - scrollBeyondLastLine: false, - scrollBeyondLastColumn: 8, - renderLineHighlight: "line", - scrollbar: { - horizontal: "auto", - }, - }} - /> + {activeFileTab.loading ? ( +
+ {t("loadingEditor")} +
+ ) : ( + { + if (!isFileTab) return + updateActiveFileContent(value ?? "") + }} + language={activeFileTab.language} + theme={editorTheme} + loading={ +
+ {t("loadingEditor")} +
+ } + options={{ + readOnly: !canEdit, + minimap: { enabled: false }, + automaticLayout: true, + fontSize: 13, + lineNumbersMinChars, + lineDecorationsWidth: 10, + wordWrap: "off", + scrollBeyondLastLine: false, + scrollBeyondLastColumn: 8, + renderLineHighlight: "line", + scrollbar: { + horizontal: "auto", + }, + }} + /> + )}