16 lines
322 B
TypeScript
16 lines
322 B
TypeScript
export type EditorTargetId = string;
|
|
|
|
const KNOWN_EDITOR_TARGET_IDS: ReadonlySet<string> = new Set([
|
|
"cursor",
|
|
"vscode",
|
|
"webstorm",
|
|
"zed",
|
|
"finder",
|
|
"explorer",
|
|
"file-manager",
|
|
]);
|
|
|
|
export function isKnownEditorTargetId(editorId: EditorTargetId): boolean {
|
|
return KNOWN_EDITOR_TARGET_IDS.has(editorId);
|
|
}
|