From 3e4d92aad0a65d975afa467d1d913f1a9a0e3370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Wielg=C3=B3rski?= Date: Tue, 21 Jul 2020 04:14:27 -0700 Subject: [PATCH] Get the most accurate full path for a class name Summary: Added functionality of choosing the best path from the list of potential full paths. By resolving a class name, the method getBestPath checks for the most accurate solution. Reviewed By: adityasharat Differential Revision: D22625186 fbshipit-source-id: 98ac4ccd1c18ec19b49edf2ed6e74a84a9899a9f --- desktop/app/src/fb-stubs/FileResolver.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/desktop/app/src/fb-stubs/FileResolver.tsx b/desktop/app/src/fb-stubs/FileResolver.tsx index 13db2fce5..f92daa750 100644 --- a/desktop/app/src/fb-stubs/FileResolver.tsx +++ b/desktop/app/src/fb-stubs/FileResolver.tsx @@ -15,16 +15,20 @@ export enum IDE { export async function resolveFullPathsFromMyles( _fileName: string, - _dirRoot?: string, -) { + _dirRoot: string, +): Promise { throw new Error('Method not implemented.'); } export function openInIDE( - _filepath: string, + _filePath: string, _ide: IDE, + _repo: string, _lineNumber = 0, - _repo?: string, ) { throw new Error('Method not implemented.'); } + +export function getBestPath(_paths: string[], _className: string): string { + throw new Error('Method not implemented.'); +}