We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a089b43 commit b47a470Copy full SHA for b47a470
src/KeilXmlParser.ts
@@ -164,17 +164,19 @@ export abstract class KeilParser<T> {
164
}
165
166
protected JudgeFileType(f: File): number {
167
- switch (f.suffix.toLowerCase()) {
168
- case '.c':
+
+ if (AbstractProject.cppfileFilter.test(f.name)) {
169
+ if (f.suffix.toLowerCase() == '.c')
170
return 1;
- case '.s':
171
- case '.a51':
172
- return 2;
173
- case '.cpp':
+ else
174
return 8;
175
- default:
176
- return 5;
177
+ else if (AbstractProject.asmfileFilter.test(f.name)) {
+ return 2;
+ }
178
179
+ return 5;
180
181
182
// example: file: 'c:\aa\bb', path: '../cc/f.txt', result: 'c:\aa\cc\f.txt'
0 commit comments