Addresses #26184 - use configuration for pinned default (#27357)

* 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:
Eric Amodio
2017-07-06 08:12:39 +02:00
committed by Benjamin Pasero
parent b5cd8121f5
commit 4f50b29e92
5 changed files with 6 additions and 10 deletions

View File

@@ -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
};
}