Skip to content

Commit 47a314c

Browse files
author
VSCode
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents 003391e + aa18ca6 commit 47a314c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/services/dialogs/browser/abstractFileDialogService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ export abstract class AbstractFileDialogService implements IFileDialogService {
283283

284284
const filter: IFilter = { name: languageName, extensions: distinct(extensions).slice(0, 10).map(e => trim(e, '.')) };
285285

286-
if (ext && extensions.indexOf(ext) >= 0) {
286+
if (ext && extensions.indexOf(ext) >= 0 && !matchingFilter) {
287287
matchingFilter = filter;
288288

289-
return null; // matching filter will be added last to the top
289+
return null; // first matching filter will be added to the top
290290
}
291291

292292
return filter;

0 commit comments

Comments
 (0)