未验证 提交 44cdf186 编写于 作者: A Alex Ross 提交者: GitHub

Prepend slash to path when suggesting filename (#69369)

上级 c764deb2
......@@ -789,7 +789,7 @@ export class TextFileService extends Disposable implements ITextFileService {
return joinPath(lastActiveFolder, untitledFileName);
}
return schemeFilter === Schemas.file ? URI.file(untitledFileName) : URI.from({ scheme: schemeFilter, authority: remoteAuthority, path: untitledFileName });
return schemeFilter === Schemas.file ? URI.file(untitledFileName) : URI.from({ scheme: schemeFilter, authority: remoteAuthority, path: '/' + untitledFileName });
}
revert(resource: URI, options?: IRevertOptions): Promise<boolean> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册