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 11import * as vscode from "vscode" ;
2+ import * as url from "url" ;
23import { SearchResult , SearchMatch } from "../../api/atelier" ;
34import { AtelierAPI } from "../../api" ;
45import { DocumentContentProvider } from "../DocumentContentProvider" ;
@@ -47,13 +48,18 @@ export class TextSearchProvider implements vscode.TextSearchProvider {
4748 if ( token . isCancellationRequested ) {
4849 return ;
4950 }
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" ;
5054 return api
5155 . actionSearch ( {
5256 query : query . pattern ,
5357 regex : query . isRegExp ,
5458 word : query . isWordMatch ,
5559 case : query . isCaseSensitive ,
5660 files : fileSpecFromURI ( options . folder ) ,
61+ sys : sysStr === "1" || ( sysStr === "0" && api . ns === "%SYS" ) ,
62+ gen : genStr === "1" ,
5763 // If options.maxResults is null the search is supposed to return an unlimited number of results
5864 // Since there's no way for us to pass "unlimited" to the server, I chose a very large number
5965 max : options . maxResults ?? 100000 ,
You can’t perform that action at this time.
0 commit comments