提交 959300f5 编写于 作者: A Alex Ross

defaultFilePath can end up one folder too high

上级 bd377076
......@@ -40,9 +40,11 @@ export class FileDialogService implements IFileDialogService {
// ...then for last active file root
if (!candidate) {
candidate = this.historyService.getLastActiveWorkspaceRoot(schemeFilter);
} else {
candidate = candidate && resources.dirname(candidate);
}
return candidate && resources.dirname(candidate) || undefined;
return candidate || undefined;
}
defaultFolderPath(schemeFilter = this.getSchemeFilterForWindow()): URI | undefined {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册