## Description
Refactoring usage of `editorType` to `ideType` to remove code
duplication
Fixes [#38286](https://github.com/appsmithorg/appsmith/issues/38286)
[#39289](https://github.com/appsmithorg/appsmith/issues/38289)
## Automation
/ok-to-test tags="@tag.All"
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!TIP]
> 🟢🟢🟢 All cypress tests have passed! 🎉🎉🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/12878729200>
> Commit: dfe8f5c6d14c7d5aa4c377ad67516e01c26e2e5b
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12878729200&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Tue, 21 Jan 2025 06:50:04 UTC
<!-- end of auto-generated comment: Cypress test results -->
## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Introduced a new IDE type context to replace the previous editor type
system
- Enhanced type safety for IDE-related operations
- **Improvements**
- Refactored editor type handling across multiple components
- Updated utility functions to work with new IDE type
- Simplified permission and context management
- **Code Quality**
- Removed deprecated editor type hooks and constants
- Standardized IDE type determination across the application
- Improved import and module organization
- **Performance**
- Streamlined type checking and context retrieval mechanisms
<!-- end of auto-generated comment: release notes by coderabbit.ai -->