web - fix service cycle
This commit is contained in:
parent
13fe219fbf
commit
4f6c57a96d
1 changed files with 1 additions and 7 deletions
|
@ -6,23 +6,17 @@
|
|||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
|
||||
import { IPathService, AbstractPathService } from 'vs/workbench/services/path/common/pathService';
|
||||
import { IHistoryService } from 'vs/workbench/services/history/common/history';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
|
||||
|
||||
export class BrowserPathService extends AbstractPathService {
|
||||
|
||||
private static fallbackUserHome(historyService: IHistoryService, environmentService: IWorkbenchEnvironmentService): URI {
|
||||
return historyService.getLastActiveWorkspaceRoot() || URI.from({ scheme: Schemas.vscodeRemote, authority: environmentService.configuration.remoteAuthority, path: '/' });
|
||||
}
|
||||
|
||||
constructor(
|
||||
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
|
||||
@IHistoryService historyService: IHistoryService,
|
||||
@IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService
|
||||
) {
|
||||
super(() => BrowserPathService.fallbackUserHome(historyService, environmentService), remoteAgentService);
|
||||
super(() => URI.from({ scheme: Schemas.vscodeRemote, authority: environmentService.configuration.remoteAuthority, path: '/' }), remoteAgentService);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue