Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to filename for markdown new file if empty #183864

Merged
merged 1 commit into from May 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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('/')) {
Expand Down