How to exclude folders from VS Code ObjectScript search
I have a VS Code workspace using server-side editing with separate folders for different namespaces on the instance:
{
"folders": [
{
"name": "SYS",
"uri": "isfs://server:%SYS/"
},
{
"name": "cls",
"uri": "isfs://server:USER/?filter=*.cls"
}
]
}
The VS Code search works well to find symbols in ObjectScript files, but it searches across all folders. Is there a way to include or exclude certain folders from the search? I've tried adding some patterns to the "files to exclude" dialog, but none of these seem to work: SYS/**, /SYS/**, %.*, \%.*
Comments
@Pravin Barton
If you want to only search a single folder, you can right-click on it in the explorer and select "Find in Folder...". VS Code will show the search view and auto-populate the "files to include" text box.
Hi Pravin,
You can use the syntax ./folderName in the files to include camp from the Search panel.
Example
This is my workspace
.png)
I have 3 folders: 2 on a remote server and one in local.
If I would like to restrict the research only to a remote folder I can type: ./npri_server_fhir:OMR
As shown in the following picture:.png)
Make sure you have followed the procedure outlined at this page (InterSystems ObjectScript extension for VS Code), under Enable proposed APIs, to enable the search across all folders.
Thank you, this works great!