File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/providers/FileSystemProvider Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import * as vscode from "vscode" ;
2
+ import * as url from "url" ;
2
3
import { SearchResult , SearchMatch } from "../../api/atelier" ;
3
4
import { AtelierAPI } from "../../api" ;
4
5
import { DocumentContentProvider } from "../DocumentContentProvider" ;
@@ -47,13 +48,18 @@ export class TextSearchProvider implements vscode.TextSearchProvider {
47
48
if ( token . isCancellationRequested ) {
48
49
return ;
49
50
}
51
+ const queryParams = url . parse ( options . folder . toString ( true ) , true ) . query ;
52
+ const sysStr = queryParams . system && queryParams . system . length ? queryParams . system . toString ( ) : "0" ;
53
+ const genStr = queryParams . generated && queryParams . generated . length ? queryParams . generated . toString ( ) : "0" ;
50
54
return api
51
55
. actionSearch ( {
52
56
query : query . pattern ,
53
57
regex : query . isRegExp ,
54
58
word : query . isWordMatch ,
55
59
case : query . isCaseSensitive ,
56
60
files : fileSpecFromURI ( options . folder ) ,
61
+ sys : sysStr === "1" || ( sysStr === "0" && api . ns === "%SYS" ) ,
62
+ gen : genStr === "1" ,
57
63
// If options.maxResults is null the search is supposed to return an unlimited number of results
58
64
// Since there's no way for us to pass "unlimited" to the server, I chose a very large number
59
65
max : options . maxResults ?? 100000 ,
You can’t perform that action at this time.
0 commit comments