Skip to content

Commit 0e0b629

Browse files
authored
Respect copy files correctly when in .dot files (microsoft#184109)
Fixes microsoft#183998
1 parent 557b8bf commit 0e0b629

File tree

1 file changed

+1
-1
lines changed
  • extensions/markdown-language-features/src/languageFeatures/copyFiles

1 file changed

+1
-1
lines changed

extensions/markdown-language-features/src/languageFeatures/copyFiles/copyFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function getDesiredNewFilePath(config: CopyFileConfiguration, document: vscode.T
8484
const docUri = getParentDocumentUri(document);
8585
for (const [rawGlob, rawDest] of Object.entries(config.destination)) {
8686
for (const glob of parseGlob(rawGlob)) {
87-
if (picomatch.isMatch(docUri.path, glob)) {
87+
if (picomatch.isMatch(docUri.path, glob, { dot: true })) {
8888
return resolveCopyDestination(docUri, file.name, rawDest, uri => vscode.workspace.getWorkspaceFolder(uri)?.uri);
8989
}
9090
}

0 commit comments

Comments
 (0)