
import { ExtensionIdentifier } from '../../../../../../platform/extensions/common/extensions.js';

function isOrganizationPromptFile(uri, extensionId, productService) {
    const chatExtensionId = productService.defaultChatAgent?.chatExtensionId;
    if (!chatExtensionId) {
        return false;
    }
    const isFromBuiltinChatExtension = ExtensionIdentifier.equals(extensionId, chatExtensionId);
    const pathContainsGithub = uri.path.includes('/github/');
    return isFromBuiltinChatExtension && pathContainsGithub;
}

export { isOrganizationPromptFile };
