Skip to content

Commit 7990e87

Browse files
author
guqiankun.gqk
committed
fix: original
1 parent 6d2dd5b commit 7990e87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/acr/src/modules/open-change-files

packages/acr/src/modules/open-change-files/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class OpenChangeFilesService extends Disposable {
6868
public openFile = async (
6969
change: IPullRequestChangeDiff,
7070
channel?: FileOpenMethod,
71-
range?: Partial<IRange> & { origininal?: boolean }
71+
range?: Partial<IRange> & { original?: boolean }
7272
) => {
7373
const leftRef = this.antcodeService.leftRef;
7474
const rightRef = this.antcodeService.rightRef;
@@ -149,7 +149,7 @@ export class OpenChangeFilesService extends Disposable {
149149

150150
if (range?.startLineNumber) {
151151
// modify 和 renamed 表示 diff编辑器
152-
if ((status === 'modified' || status === 'renamed') && range.origininal) {
152+
if ((status === 'modified' || status === 'renamed') && range.original) {
153153
options.originalRange = range;
154154
} else {
155155
options.range = range;
@@ -199,7 +199,7 @@ export class OpenChangeFilesService extends Disposable {
199199

200200
private revealRangeInCenter(range) {
201201
if (range) {
202-
if (range.origininal) {
202+
if (range.original) {
203203
this.workbenchEditorService.currentEditorGroup?.diffEditor.originalEditor.monacoEditor.revealRangeInCenter(
204204
range as IRange
205205
);

0 commit comments

Comments
 (0)