mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Default to filename for markdown new file if empty (#183864)
Fixes #183848
This commit is contained in:
@@ -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('/')) {
|
||||
|
||||
Reference in New Issue
Block a user