remove the auto save option from the file menu and provide guidance

This commit is contained in:
Benjamin Pasero
2015-12-23 13:58:31 +01:00
parent 66c081aa2e
commit 235bce75e3
11 changed files with 25 additions and 92 deletions

View File

@@ -26,11 +26,6 @@ export interface IWorkspaceContextService extends IBaseWorkspaceContextService {
* Update options in the running instance.
*/
updateOptions(key: string, value: any): void;
/**
* Convenient way to check if auto save is enabled or not.
*/
isAutoSaveEnabled(): boolean;
}
export class WorkspaceContextService extends BaseWorkspaceContextService implements IWorkspaceContextService {
@@ -51,13 +46,4 @@ export class WorkspaceContextService extends BaseWorkspaceContextService impleme
this.eventService.emit(EventType.WORKBENCH_OPTIONS_CHANGED, new OptionsChangeEvent(key, oldValue, value));
}
public isAutoSaveEnabled(): boolean {
let autoSaveEnabled = true;
if (this.options && types.isNumber(this.options.autoSaveDelay)) {
autoSaveEnabled = (this.options.autoSaveDelay !== -1);
}
return autoSaveEnabled;
}
}