-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Find files on file system using a file pattern #8
Comments
If running from the frontend (browser), you might want to setup a small backend (node) service that will do the search and return the results. The idea is that the frontend doesn't have direct access to the remote fs. You'd have to use the FileSystem proxy, but if you want to filter files, doing it from the frontend would be sub-optimal. So this means making a new proxy, where the server would do the filtering based on some input filter, and just return what is of interest. To implement such a service, you can inspire yourself from the following code:
To help you with your actual use case, I would see the following protocol: export traceFinderPath = '/services/traceFinder'
export interface TraceFinder {
/**
* Returns traces under the provided paths (must be directories)
*/
findTraceRecursive(paths: string[]): Promise<string[]>
} Then from the frontend, you can remotely call this function by passing the workspace roots to it as |
Thank you very much for the detailed information. Makes sense to separate the backend and frontend for such a search feature. I'll give it a try. |
Adds the Time Range Data Widget to the sidebar as specified in ADR eclipse-cdt-cloud#8: Time Range Data Widget The unit controller is linked to the widget by signals. When a new active tab is loaded or changed, the trace-viewer Theia component dispatches the new active unit controller via signal-manager. This signal is picked up by the time-range-data-widget react component. Because of this, the unit controller is now a public value in the trace-context-component. Signed-off-by: William Yang <william.yang@ericsson.com>
The background color of some elements of the extension, like the charts, was not being changed when a new theme was selected for VSCode. Now, the extension recognizes if the theme is light or dark and changes the background of the charts accordingly. Fixes eclipse-cdt-cloud#8. Signed-off-by: Rodrigo Pinto <rodrigo.pinto@calian.ca>
To find traces programmatically in the file system where the source code (language server) is. For this I'd like to issue a command on a folder and search for file/directories with a given file pattern. For example:
"From a start directory, find all files with the file suffix *.log"
"From a start directory, find all directories that contains a file called metadata"
The text was updated successfully, but these errors were encountered: