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

Dependency Injection generated files #594

Open
nizam-betterapp opened this issue Sep 15, 2024 · 1 comment
Open

Dependency Injection generated files #594

nizam-betterapp opened this issue Sep 15, 2024 · 1 comment

Comments

@nizam-betterapp
Copy link

We use ksp plugins in our android project to do some dagger hilt annotations. When doing gradle build, it creates file under this directory for an app with package name com.example.blah

~/project_dir/app/build/generated/ksp/debug/kotlin/com/example/blah/destinations/MyGeneratedFile.kt
We import it as import com.example.blah.destinations.MyGeneratedFile

I want language server to index these files as well so that "Go to definition" kind shortcuts work.
Please help.

P.S: I have tried various IDEs and found cursor.com (fork of vscode with AI) to be the 2-3x more productive than copilot or any other AI editors like continue.dev or double.bot or codium. If cursor becomes a great leader, this library is going to be super crucial to get Android development on vscode/cursor. All the power to your hardwork! If I had connects with cursor team, I'll ask them to fund this project.

@AlexandrosAlexiou
Copy link
Contributor

AlexandrosAlexiou commented Dec 7, 2024

The build folder is excluded when searching for sources, usually generated sources go to target/generated-sources.
To allow this we need to allow the build/generated folder to be searched for sources.

Not sure if there is a convension on where to locate generated sources, there should be one.

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

2 participants