mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Respect copy files correctly when in .dot files (#184109)
Fixes #183998
This commit is contained in:
@@ -84,7 +84,7 @@ function getDesiredNewFilePath(config: CopyFileConfiguration, document: vscode.T
|
||||
const docUri = getParentDocumentUri(document);
|
||||
for (const [rawGlob, rawDest] of Object.entries(config.destination)) {
|
||||
for (const glob of parseGlob(rawGlob)) {
|
||||
if (picomatch.isMatch(docUri.path, glob)) {
|
||||
if (picomatch.isMatch(docUri.path, glob, { dot: true })) {
|
||||
return resolveCopyDestination(docUri, file.name, rawDest, uri => vscode.workspace.getWorkspaceFolder(uri)?.uri);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user