Skip to content

Commit 1aa7e7e

Browse files
committed
also exclude vscode and angular from snippet detection
1 parent 5bc9032 commit 1aa7e7e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

docs/exclusion.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,29 @@ public static class DefaultDirectoryExclusions
5555
{
5656
var suffix = Path.GetFileName(path).ToLowerInvariant();
5757
return suffix is
58+
59+
// source control
5860
".git" or
61+
62+
// ide temp files
5963
".vs" or
64+
".vscode" or
6065
".idea" or
66+
67+
// angular cache
68+
".angular" or
69+
70+
// package cache
6171
"packages" or
6272
"node_modules" or
73+
74+
// build output
6375
"bin" or
6476
"obj";
6577
}
6678
}
6779
```
68-
<sup><a href='/src/MarkdownSnippets/Reading/Exclusions/DefaultDirectoryExclusions.cs#L1-L17' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultDirectoryExclusions.cs' title='Start of snippet'>anchor</a></sup>
80+
<sup><a href='/src/MarkdownSnippets/Reading/Exclusions/DefaultDirectoryExclusions.cs#L1-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-DefaultDirectoryExclusions.cs' title='Start of snippet'>anchor</a></sup>
6981
<!-- endSnippet -->
7082

7183

src/MarkdownSnippets/Reading/Exclusions/DefaultDirectoryExclusions.cs

+12
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ public static bool ShouldExcludeDirectory(string path)
66
{
77
var suffix = Path.GetFileName(path).ToLowerInvariant();
88
return suffix is
9+
10+
// source control
911
".git" or
12+
13+
// ide temp files
1014
".vs" or
15+
".vscode" or
1116
".idea" or
17+
18+
// angular cache
19+
".angular" or
20+
21+
// package cache
1222
"packages" or
1323
"node_modules" or
24+
25+
// build output
1426
"bin" or
1527
"obj";
1628
}

0 commit comments

Comments
 (0)