Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related Class for /file command #170

Closed
4 tasks done
phodal opened this issue Dec 24, 2024 · 1 comment
Closed
4 tasks done

Related Class for /file command #170

phodal opened this issue Dec 24, 2024 · 1 comment

Comments

@phodal
Copy link
Owner

phodal commented Dec 24, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Related for /file command

  • when user use /file:xx.Controller command can show related PsiFile/PsiElement in ChatPanel.
  • the related PsiFile default to use /structure:xxx file symbol
  • /goto symbol or file for multiple-edit
  • Show current file in Chatbox when
  • Right Panel patch: https://github.com/java-diff-utils/java-diff-utils
phodal added a commit that referenced this issue Dec 24, 2024
- Created `ShireInputLookupManagerListener` in a new file.
- Removed duplicated code from `ShireInputSection` and `ShireInput`.
- Updated references to use the new listener.
phodal added a commit that referenced this issue Dec 24, 2024
- Modify ShireInput to append relative file paths instead of absolute ones.
- Enhance JavaRelatedClassesProvider with caching for lookup operations.
@phodal
Copy link
Owner Author

phodal commented Dec 24, 2024

image

@phodal phodal closed this as completed Dec 24, 2024
@phodal phodal reopened this Dec 24, 2024
phodal added a commit that referenced this issue Dec 24, 2024
- Import additional IntelliJ dependencies for project and file utilities.
- Extract language and generate relative file path for code block.
- Append file path comment with language-specific comment prefix.
phodal added a commit that referenced this issue Dec 24, 2024
- Introduce `relativePath` function in `shirecore` to replace redundant path calculations.
- Consolidate file path logic across multiple files for consistency.
- Update `PatternSearcher` to use `URLUtil.FILE_PROTOCOL` for file system refresh.
phodal added a commit that referenced this issue Dec 25, 2024
- Added new STRUCTURE command to BuiltinCommand enum.
- Updated command handling in ShireSyntaxAnalyzer and ShireFoldingBuilder.
- Added StructureShireCommand for file structure retrieval.
- Updated completion contributor to include STRUCTURE command.
phodal added a commit that referenced this issue Dec 25, 2024
- Extracted StructureShireCommand class into its own file for better organization.
- Removed redundant imports and cleaned up ShireSyntaxAnalyzer.kt.
phodal added a commit that referenced this issue Dec 25, 2024
…dling #170

- Enhanced JavaTypeResolver to handle PsiClass casting errors.
- Optimized JavaMethodStructureProvider for better thread handling.
- Simplified JavaRelatedClassesProvider by removing redundant caching.
- Updated BuiltinCommand to use entries instead of values.
phodal added a commit that referenced this issue Dec 25, 2024
- Move `runReadAction` inside `executeOnPooledThread` for better thread management in `JavaClassStructureProvider` and `JavaMethodStructureProvider`.
- Rename `getVirtualFile` to `createShireFile` for clarity.
- Clean up UI code in `ShireInput` and remove redundant `toString` in `ShireLookupElement`.
phodal added a commit that referenced this issue Dec 25, 2024
Replace `runReadAction` with `withContext(Dispatchers.IO)` and `executeOnPooledThread` for better thread management and performance in `StructureShireCommand`.
phodal added a commit that referenced this issue Dec 25, 2024
…viders #170

Updated file structure providers to use `relativePath` for consistent path handling across Kotlin, Go, Proto, Java, and JavaScript providers. Also adjusted local mode check in `ShireDefaultLlmExecutor` to include `context.hole` condition.
phodal added a commit that referenced this issue Dec 25, 2024
Add `setupEditorListener` and `setupRelatedListener` to handle file editor events and update the list model accordingly. This enhances the input component's responsiveness to file changes.
phodal added a commit that referenced this issue Dec 25, 2024
Updated the path output in ShireInput.kt to use 'file' instead of 'structure' for clarity and consistency.
phodal added a commit that referenced this issue Dec 25, 2024
…ments #170

- Replace deprecated `fileOpenedSync` with `selectionChanged` in `FileEditorManagerListener`.
- Streamline logic for updating the list model and add support for updating related elements
phodal added a commit that referenced this issue Dec 25, 2024
…kup #170

- Expose `isPopularFramework` and `isJavaBuiltin` methods in `JavaContextCollection` for reuse.
- Optimize `findRelatedClasses` in `JavaRelatedClassesProvider` to handle invalid elements and filter out Java built-in and popular framework types.
- Remove unnecessary comments and
phodal added a commit that referenced this issue Dec 25, 2024
#170

- Increase visible row count and adjust scroll pane dimensions for better visibility.
- Add explicit close button handling and prevent event propagation.
- Simplify logic for updating elements and handling file selection.
phodal added a commit that referenced this issue Dec 25, 2024
Add a check to skip files with unsupported languages in the selectionChanged method to prevent errors when handling such files.
phodal added a commit that referenced this issue Dec 25, 2024
…170

- Replace `runWriteAction` with `runInEdt` in `LoggingStreamingService` for better thread handling.
- Simplify `findFile` method in `ProjectUtil` by removing unnecessary caching.
- Enhance `DiffLangSketch` to handle patches with `afterFileName` and fallback cases.
- Add missing imports in `OnStreamingService`.
phodal added a commit that referenced this issue Dec 25, 2024
- Remove unused imports in ProjectUtil.kt.
- Rename `firstOrNull` to `editorProvider` in DiffLangSketch.kt for clarity.
phodal added a commit that referenced this issue Dec 26, 2024
Remove unused imports and parameters in `SingleFileDiffView` and `DiffLangSketch` classes. This includes removing `patchContent` parameter and making `diffFile` property public.
@phodal phodal closed this as completed Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant