未验证 提交 33287fbd 编写于 作者: A Alex Ross 提交者: GitHub

Make sure that C: is C:\ in simple file picker (#91746)

Fixes https://github.com/microsoft/vscode-remote-release/issues/1596
上级 b20adfec
......@@ -297,6 +297,8 @@ export class SimpleFileDialog {
function doResolve(dialog: SimpleFileDialog, uri: URI | undefined) {
if (uri) {
uri = resources.addTrailingPathSeparator(uri, dialog.separator); // Ensures that c: is c:/ since this comes from user input and can be incorrect.
// To be consistent, we should never have a trailing path separator on directories (or anything else). Will not remove from c:/.
uri = resources.removeTrailingPathSeparator(uri);
}
resolve(uri);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册