提交 b11100b3 编写于 作者: I isidor

move add remote root hack one level up

上级 6fbaf548
......@@ -27,7 +27,6 @@ export class Model {
constructor( @IWorkspaceContextService private contextService: IWorkspaceContextService) {
const setRoots = () => {
this._roots = this.contextService.getWorkspace().folders.map(uri => new FileStat(uri, undefined));
this._roots.push(new FileStat(URI.parse('ftp://waws-prod-db3-029.ftp.azurewebsites.windows.net/'), undefined));
};
this.contextService.onDidChangeWorkspaceFolders(() => setRoots());
setRoots();
......
......@@ -471,6 +471,7 @@ export class WorkspaceServiceImpl extends WorkspaceService {
.then(() => {
const workspaceConfigurationModel = this.workspaceConfiguration.workspaceConfigurationModel;
const workspaceFolders = this.parseWorkspaceFolders(workspaceConfigurationModel.folders);
workspaceFolders.push(URI.parse('ftp://waws-prod-db3-029.ftp.azurewebsites.windows.net/'));
if (!workspaceFolders.length) {
return TPromise.wrapError<void>(new Error('Invalid workspace configuraton file ' + this.workspaceConfigPath));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册