Skip to content

Commit 4cf0c0f

Browse files
committed
Make //*.js the default when adding files to include
Use //*.min.js as default for exclude files
1 parent 9de9332 commit 4cf0c0f

File tree

1 file changed

+2
-1
lines changed
  • bundles/com.eclipsesource.jshint.ui/src/com/eclipsesource/jshint/ui/internal/preferences/ui

1 file changed

+2
-1
lines changed

bundles/com.eclipsesource.jshint.ui/src/com/eclipsesource/jshint/ui/internal/preferences/ui/IncludesView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ public void widgetSelected( SelectionEvent e ) {
173173
}
174174

175175
private void addPattern( Table table ) {
176-
String pattern = showPatternDialogForTable( table, null );
176+
String defaultPattern = table == includeTable ? "//*.js" : "//*.min.js";
177+
String pattern = showPatternDialogForTable( table, defaultPattern );
177178
if( pattern != null ) {
178179
ArrayList<String> patterns = getPatterns( table );
179180
if( !patterns.contains( pattern ) ) {

0 commit comments

Comments
 (0)