File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ export function initialise(context: ExtensionContext) {
55
55
56
56
if ( filter && filter . description ) {
57
57
// Bad way to get the library for the filter ..
58
- const library = ( filter . description . split ( `/` ) [ 0 ] ) . toLocaleUpperCase ( ) ;
58
+ const library : string = ( filter . description . split ( `/` ) [ 0 ] ) . toLocaleUpperCase ( ) ;
59
+
60
+ if ( library . includes ( `*` ) ) {
61
+ window . showErrorMessage ( `Cannot show lint config for a library filter.` ) ;
62
+ return ;
63
+ }
64
+
59
65
configPath = `${ library } /VSCODE/RPGLINT.JSON` ;
60
66
61
67
exists = ( await connection . runCommand ( {
Original file line number Diff line number Diff line change 68
68
"view/item/context" : [
69
69
{
70
70
"command" : " vscode-rpgle.openLintConfig" ,
71
- "when" : " view == objectBrowser && viewItem == filter" ,
71
+ "when" : " view == objectBrowser && viewItem =~ /^ filter.*$/ " ,
72
72
"group" : " 1_LibActions@2"
73
73
}
74
74
]
You can’t perform that action at this time.
0 commit comments