Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/diffs/src/components/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export class File<
const file = this.file;
if (fileContainer != null && file != null) {
void this.fileRenderer.initializeHighlighter().then((highlighter) => {
editor.syncToRenderedView(
editor.__resetEditState(
highlighter,
fileContainer,
file,
Expand Down Expand Up @@ -529,7 +529,7 @@ export class File<

// postpone background tokenizing to next frame for avoiding UI freeze
// during render
this.editor?.postponeBackgroundTokenizeToNextFrame();
this.editor?.__postponeBackgroundTokenizeToNextFrame();

const { collapsed = false, themeType = 'system' } = this.options;
const nextRenderRange = collapsed ? undefined : renderRange;
Expand Down Expand Up @@ -659,7 +659,7 @@ export class File<
const editor = this.editor;
if (editor != null) {
void this.fileRenderer.initializeHighlighter().then((highlighter) => {
editor.syncToRenderedView(
editor.__resetEditState(
highlighter,
fileContainer,
file,
Expand Down
6 changes: 3 additions & 3 deletions packages/diffs/src/components/FileDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export class FileDiff<

// postpone background tokenizing to next frame for avoiding UI freeze
// during render
this.editor?.postponeBackgroundTokenizeToNextFrame();
this.editor?.__postponeBackgroundTokenizeToNextFrame();

const { collapsed = false, themeType = 'system' } = this.options;
const nextRenderRange = collapsed ? undefined : renderRange;
Expand Down Expand Up @@ -950,7 +950,7 @@ export class FileDiff<
const file = this.getAdditionFile();
if (editor != null && file != null) {
void this.hunksRenderer.initializeHighlighter().then((highlighter) => {
editor.syncToRenderedView(
editor.__resetEditState(
highlighter,
fileContainer,
file,
Expand Down Expand Up @@ -1008,7 +1008,7 @@ export class FileDiff<
const file = this.getAdditionFile();
if (fileContainer != null && file != null) {
void this.hunksRenderer.initializeHighlighter().then((highlighter) => {
editor.syncToRenderedView(
editor.__resetEditState(
highlighter,
fileContainer,
file,
Expand Down
Loading