Display Xcode for CK and Android Studio for Litho Components

Summary:
Detect the framework used for a given component and accordingly, display a proper IDE list.

[FB Only]
changelog: It is now possible to directly open CKComponents from the Layout inspect

Reviewed By: adityasharat

Differential Revision: D23158628

fbshipit-source-id: 305f10752c72eac001334f09bab29264e3e328a6
This commit is contained in:
Dominik Wielgórski
2020-08-17 10:18:07 -07:00
committed by Facebook GitHub Bot
parent 7d0dd3c656
commit 8aa29d00f2

View File

@@ -7,6 +7,8 @@
* @format
*/
import {Element, ElementFramework} from 'flipper';
export enum IDEType {
'DIFFUSION',
'AS',
@@ -46,4 +48,22 @@ export abstract class IDEFileResolver {
): string {
throw new Error('Method not implemented.');
}
static async resolvePath(
_className: string,
_framework: string,
): Promise<string> {
throw new Error('Method not implemented.');
}
static isElementFromFramework(
_node: Element,
_framework: ElementFramework,
): boolean {
throw new Error('Method not implemented.');
}
static isElementFromSupportedFramework(_node: Element): boolean {
throw new Error('Method not implemented.');
}
}