MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / devtools_frontend_candidates_from

Function devtools_frontend_candidates_from

packages/server/src/devtools.rs:143–156  ·  view source on GitHub ↗
(start: &Path)

Source from the content-addressed store, hash-verified

141}
142
143fn devtools_frontend_candidates_from(start: &Path) -> Vec<PathBuf> {
144 start
145 .ancestors()
146 .flat_map(|ancestor| {
147 [
148 ancestor.join(
149 "node_modules/@react-native/debugger-frontend/dist/third-party/front_end",
150 ),
151 ancestor.join("chrome-devtools-ui"),
152 ancestor.join("packages/client/dist/chrome-devtools-ui"),
153 ]
154 })
155 .collect()
156}
157
158fn is_devtools_frontend_root(path: &Path) -> bool {
159 path.join("inspector.html").is_file()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected