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

Commit

Permalink
Fix incorrect slash on library exclude pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
maddogjt committed Jan 20, 2021
1 parent c652f15 commit 7204ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export async function activate(context: vscode.ExtensionContext) {
path.resolve(ArduinoWorkspace.rootPath, deviceContext.output));
excludePatterns.push(`${outputPath}/**`);
}
const excludePattern = `{${excludePatterns.join(",")}}`.replace("\\", "/");
const excludePattern = `{${excludePatterns.map((p) => p.replace("\\", "/")).join(",")}}`;

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

0 comments on commit 7204ae7

Please sign in to comment.