Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 7204ae7

Browse files
committed
Fix incorrect slash on library exclude pattern
1 parent c652f15 commit 7204ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export async function activate(context: vscode.ExtensionContext) {
175175
path.resolve(ArduinoWorkspace.rootPath, deviceContext.output));
176176
excludePatterns.push(`${outputPath}/**`);
177177
}
178-
const excludePattern = `{${excludePatterns.join(",")}}`.replace("\\", "/");
178+
const excludePattern = `{${excludePatterns.map((p) => p.replace("\\", "/")).join(",")}}`;
179179

180180
const fileUris = await vscode.workspace.findFiles(includePattern, excludePattern);
181181
const newSketchFileName = await vscode.window.showQuickPick(fileUris.map((fileUri) =>

0 commit comments

Comments
 (0)