get rid of singleFileMode
This commit is contained in:
parent
66bb8ff968
commit
7d9506c48a
|
@ -36,11 +36,6 @@ export interface IOptions {
|
||||||
*/
|
*/
|
||||||
extensionsToInstall?: string[];
|
extensionsToInstall?: string[];
|
||||||
|
|
||||||
/**
|
|
||||||
* A boolean flag indicating if the workbench is in file mode where some UI gets hidden. Does not override an existing setting by the user.
|
|
||||||
*/
|
|
||||||
singleFileMode?: boolean;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Editor options to be used for any editor in the workbench.
|
* Editor options to be used for any editor in the workbench.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -68,7 +68,6 @@ export function startup(configuration: IWindowConfiguration, globalSettings: IGl
|
||||||
const filesToCreate = configuration.filesToCreate && configuration.filesToCreate.length ? toInputs(configuration.filesToCreate) : null;
|
const filesToCreate = configuration.filesToCreate && configuration.filesToCreate.length ? toInputs(configuration.filesToCreate) : null;
|
||||||
const filesToDiff = configuration.filesToDiff && configuration.filesToDiff.length ? toInputs(configuration.filesToDiff) : null;
|
const filesToDiff = configuration.filesToDiff && configuration.filesToDiff.length ? toInputs(configuration.filesToDiff) : null;
|
||||||
const shellOptions: IOptions = {
|
const shellOptions: IOptions = {
|
||||||
singleFileMode: !configuration.workspacePath,
|
|
||||||
filesToOpen,
|
filesToOpen,
|
||||||
filesToCreate,
|
filesToCreate,
|
||||||
filesToDiff,
|
filesToDiff,
|
||||||
|
|
|
@ -394,7 +394,7 @@ export class Workbench implements IPartService {
|
||||||
|
|
||||||
// Sidebar visibility
|
// Sidebar visibility
|
||||||
this.sideBarHidden = this.storageService.getBoolean(Workbench.sidebarHiddenSettingKey, StorageScope.WORKSPACE, false);
|
this.sideBarHidden = this.storageService.getBoolean(Workbench.sidebarHiddenSettingKey, StorageScope.WORKSPACE, false);
|
||||||
if (!!this.workbenchParams.options.singleFileMode) {
|
if (!this.contextService.getWorkspace()) {
|
||||||
this.sideBarHidden = true; // we hide sidebar in single-file-mode
|
this.sideBarHidden = true; // we hide sidebar in single-file-mode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,7 +406,7 @@ export class Workbench implements IPartService {
|
||||||
// Panel part visibility
|
// Panel part visibility
|
||||||
const panelRegistry = (<PanelRegistry>Registry.as(PanelExtensions.Panels));
|
const panelRegistry = (<PanelRegistry>Registry.as(PanelExtensions.Panels));
|
||||||
this.panelHidden = this.storageService.getBoolean(Workbench.panelHiddenSettingKey, StorageScope.WORKSPACE, true);
|
this.panelHidden = this.storageService.getBoolean(Workbench.panelHiddenSettingKey, StorageScope.WORKSPACE, true);
|
||||||
if (!!this.workbenchParams.options.singleFileMode || !panelRegistry.getDefaultPanelId()) {
|
if (!this.contextService.getWorkspace() || !panelRegistry.getDefaultPanelId()) {
|
||||||
this.panelHidden = true; // we hide panel part in single-file-mode or if there is no default panel
|
this.panelHidden = true; // we hide panel part in single-file-mode or if there is no default panel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue