Expose IDEFileResolver from 'flipper' module to properly import it from 'layout' plugin (#1442)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/1442 Layout plugin cannot be bundled as a standalone package because it imports a file from outside of its folder. This change exposes IDEFileResolver in a proper way so now it's possible to import it from 'flipper'. Reviewed By: passy Differential Revision: D22975515 fbshipit-source-id: 8af6d2ca1ceb8627a449e055c8773549dd681b7a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
95ae98d925
commit
dcd1c08dea
37
desktop/app/src/fb-stubs/IDEFileResolver.tsx
Normal file
37
desktop/app/src/fb-stubs/IDEFileResolver.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
export enum IDEType {
|
||||
'DIFFUSION',
|
||||
'AS',
|
||||
'VSCODE',
|
||||
'XCODE',
|
||||
}
|
||||
|
||||
export abstract class IDEFileResolver {
|
||||
static async resolveFullPathsFromMyles(
|
||||
_fileName: string,
|
||||
_dirRoot: string,
|
||||
): Promise<string[]> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
static openInIDE(
|
||||
_filePath: string,
|
||||
_ide: IDEType,
|
||||
_repo: string,
|
||||
_lineNumber = 0,
|
||||
) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
static getBestPath(_paths: string[], _className: string): string {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user