Browse Source

Avoids extra logic for Beside diff opening

main
Eric Amodio 1 year ago
parent
commit
a3a88e85e6
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      src/webviews/commitDetails/commitDetailsWebview.ts

+ 6
- 5
src/webviews/commitDetails/commitDetailsWebview.ts View File

@ -1,5 +1,5 @@
import type { CancellationToken, ConfigurationChangeEvent, TextDocumentShowOptions } from 'vscode';
import { CancellationTokenSource, Disposable, Uri, ViewColumn, window } from 'vscode';
import type { CancellationToken, ConfigurationChangeEvent, TextDocumentShowOptions, ViewColumn } from 'vscode';
import { CancellationTokenSource, Disposable, Uri, window } from 'vscode';
import { serializeAutolink } from '../../annotations/autolinks'; import { serializeAutolink } from '../../annotations/autolinks';
import type { CopyShaToClipboardCommandArgs } from '../../commands'; import type { CopyShaToClipboardCommandArgs } from '../../commands';
import type { CoreConfiguration } from '../../constants'; import type { CoreConfiguration } from '../../constants';
@ -916,9 +916,10 @@ export class CommitDetailsWebviewProvider implements WebviewProvider
} }
private getShowOptions(params: FileActionParams): TextDocumentShowOptions | undefined { private getShowOptions(params: FileActionParams): TextDocumentShowOptions | undefined {
return getContext('gitlens:webview:graph:active') || getContext('gitlens:webview:rebase:active')
? { ...params.showOptions, viewColumn: ViewColumn.Beside }
: params.showOptions;
return params.showOptions;
// return getContext('gitlens:webview:graph:active') || getContext('gitlens:webview:rebase:active')
// ? { ...params.showOptions, viewColumn: ViewColumn.Beside } : params.showOptions;
} }
} }

Loading…
Cancel
Save