mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
* Addresses #26184 - use configuration for pinned default * Honors the preview editor setting above all * Removes passing undefined to pinned internally re: requested code review changes * Removes unnecessary undefined * feedback
This commit is contained in:
committed by
Benjamin Pasero
parent
b5cd8121f5
commit
4f50b29e92
@@ -205,11 +205,10 @@ export class ExtHostApiCommands {
|
||||
});
|
||||
|
||||
this._register('vscode.diff', (left: URI, right: URI, label: string, options?: vscode.TextDocumentShowOptions) => {
|
||||
|
||||
let editorOptions: IEditorOptions;
|
||||
if (options) {
|
||||
editorOptions = {
|
||||
pinned: !options.preview,
|
||||
pinned: typeof options.preview === 'boolean' ? !options.preview : undefined,
|
||||
preserveFocus: options.preserveFocus
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user