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

Golang support #89

Closed
phodal opened this issue Sep 14, 2024 · 0 comments
Closed

Golang support #89

phodal opened this issue Sep 14, 2024 · 0 comments

Comments

@phodal
Copy link
Owner

phodal commented Sep 14, 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
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

phodal added a commit that referenced this issue Sep 14, 2024
This commit introduces support for the Go language in the Shire project. It includes the necessary changes in the build.gradle.kts and settings.gradle.kts files to include the Go language project. It also adds the necessary Go language specific files and classes for handling Go code structures such as classes, methods, and variables. Additionally, it modifies the FileStructure class in the core module to handle Go specific elements.
phodal added a commit that referenced this issue Sep 14, 2024
…ort #89

This commit introduces the GoPsiContextVariableProvider class to provide variable context for Go language. It also updates the GoMethodStructureProvider and the plugin configuration file to integrate the new provider.
phodal added a commit that referenced this issue Sep 14, 2024


Update the class name extraction logic in DirectoryStructure to handle PsiNameIdentifierOwner instances. This change ensures that the correct class names are extracted and displayed in the formatted output.
phodal added a commit that referenced this issue Sep 14, 2024
…PsiContextVariableProvider #89

This commit improves the handling of RELATED_CLASSES and CODE_SMELL in GoPsiContextVariableProvider. For RELATED_CLASSES, it now finds related types for GoFunctionOrMethodDeclaration and GoFile. For CODE_SMELL, it collects element problems. Also, a read lock annotation is added to findRelatedTypes in GoPsiUtil.
phodal added a commit that referenced this issue Sep 14, 2024
phodal added a commit that referenced this issue Sep 14, 2024
Added a new method `getGoVersion` in `GoLanguageProvider` to fetch the Go version from the source file. This method uses reflection to call the `getTargetGoSdkVersion` method from the `GoTargetSdkVersionProvider` class.
phodal added a commit that referenced this issue Sep 14, 2024
fix PsiElement references an unresolved class com.goide.psi.impl.GoIotaUtil. This can lead to **NoSuchClassError** exception at runtime.
phodal added a commit that referenced this issue Sep 14, 2024
Update the GoPsiContextVariableProvider to map related types to their text representation. This change affects both GoFunctionOrMethodDeclaration and GoFile cases.
@phodal phodal closed this as completed in c265920 Sep 15, 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