mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
remove the auto save option from the file menu and provide guidance
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user