mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Default to filename for markdown new file if empty (#183864)
Fixes #183848
This commit is contained in:
parent
50527c97d8
commit
d933dbdc34
|
@ -125,7 +125,10 @@ export function resolveCopyDestination(documentUri: vscode.Uri, fileName: string
|
|||
|
||||
|
||||
function resolveCopyDestinationSetting(documentUri: vscode.Uri, fileName: string, dest: string, getWorkspaceFolder: GetWorkspaceFolder): string {
|
||||
let outDest = dest;
|
||||
let outDest = dest.trim();
|
||||
if (!outDest) {
|
||||
outDest = '${fileName}';
|
||||
}
|
||||
|
||||
// Destination that start with `/` implicitly means go to workspace root
|
||||
if (outDest.startsWith('/')) {
|
||||
|
|
Loading…
Reference in a new issue