44 *--------------------------------------------------------------------------------------------*/
55
66import { IWindowConfiguration , IPath , IPathsToWaitFor } from 'vs/platform/windows/common/windows' ;
7- import { IEnvironmentService , IExtensionHostDebugParams , IDebugParams } from 'vs/platform/environment/common/environment' ;
7+ import { IEnvironmentService , IExtensionHostDebugParams , IDebugParams , BACKUPS } from 'vs/platform/environment/common/environment' ;
88import { ServiceIdentifier } from 'vs/platform/instantiation/common/instantiation' ;
99import { URI } from 'vs/base/common/uri' ;
1010import { IProcessEnvironment } from 'vs/base/common/platform' ;
1111import { IWorkspaceIdentifier , ISingleFolderWorkspaceIdentifier } from 'vs/platform/workspaces/common/workspaces' ;
1212import { ExportData } from 'vs/base/common/performance' ;
1313import { LogLevel } from 'vs/platform/log/common/log' ;
1414import { joinPath } from 'vs/base/common/resources' ;
15- import { IWorkbenchConstructionOptions } from 'vs/workbench/workbench.web.api' ;
1615import { Schemas } from 'vs/base/common/network' ;
1716
1817export class BrowserWindowConfiguration implements IWindowConfiguration {
@@ -58,12 +57,18 @@ export class BrowserWindowConfiguration implements IWindowConfiguration {
5857 termProgram ?: string ;
5958}
6059
60+ export interface IBrowserWindowConfiguration {
61+ workspaceId : string ;
62+ remoteAuthority ?: string ;
63+ webviewEndpoint ?: string ;
64+ }
65+
6166export class BrowserWorkbenchEnvironmentService implements IEnvironmentService {
6267 _serviceBrand : ServiceIdentifier < IEnvironmentService > ;
6368
6469 readonly configuration : IWindowConfiguration = new BrowserWindowConfiguration ( ) ;
6570
66- constructor ( configuration : IWorkbenchConstructionOptions ) {
71+ constructor ( configuration : IBrowserWindowConfiguration ) {
6772 this . args = { _ : [ ] } ;
6873 this . appRoot = '/web/' ;
6974 this . appNameLong = 'Visual Studio Code - Web' ;
@@ -74,6 +79,8 @@ export class BrowserWorkbenchEnvironmentService implements IEnvironmentService {
7479 this . keybindingsResource = joinPath ( this . userRoamingDataHome , 'keybindings.json' ) ;
7580 this . keyboardLayoutResource = joinPath ( this . userRoamingDataHome , 'keyboardLayout.json' ) ;
7681 this . localeResource = joinPath ( this . userRoamingDataHome , 'locale.json' ) ;
82+ this . backupHome = joinPath ( this . userRoamingDataHome , BACKUPS ) ;
83+ this . configuration . backupWorkspaceResource = joinPath ( this . backupHome , configuration . workspaceId ) ;
7784
7885 this . logsPath = '/web/logs' ;
7986
0 commit comments