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

Add support automation for VS Code #43

Closed
jewelshkjony opened this issue Sep 21, 2022 · 8 comments · May be fixed by #48
Closed

Add support automation for VS Code #43

jewelshkjony opened this issue Sep 21, 2022 · 8 comments · May be fixed by #48
Labels
enhancement New feature or request

Comments

@jewelshkjony
Copy link
Contributor

Add support automation for VS Code.

Please add automation support for Java and Kotlin languages in VS Code.

(Thanks for your Rush)

@shreyashsaitwal
Copy link
Owner

What do you mean by automation support?

@shreyashsaitwal shreyashsaitwal added the enhancement New feature or request label Sep 21, 2022
@jewelshkjony
Copy link
Contributor Author

When we code in Android studio, Android studio suggest us for best code. This suggestion is not working on VS code for Rush project. Please add this features in 2.0

@shreyashsaitwal
Copy link
Owner

So you basically mean intelli-sense features (autocompletion, etc.). I did put some efforts to make VSCode intelli-sense work for Rush projects previously, but never really got it working.

I will give it shot again, but can't promise anything. If you, or anyone else is interested in contributing this, you might want to look into Eclipse configuration files. These are equivalent to the IntelliJ configuration files (found in .idea) folder and used by Eclipse JDT lang server (this is what VSCode uses under-the-hood for providing Java lang support).

@shreyashsaitwal
Copy link
Owner

Will be available in v2.0.0.

PS: 1c328f5

@shreyashsaitwal shreyashsaitwal linked a pull request Nov 13, 2022 that will close this issue
@ysfchn
Copy link

ysfchn commented Mar 18, 2023

Just found out that you can create a settings.json file in the .vscode folder in the project directory (.vscode/settings.json), and point to the jar files where Rush has installed:

{
    "java.project.referencedLibraries": [
        "deps/*.jar",
        "~/rush/dev-deps/**/*.jar",
        "~/rush/dev-deps/*.jar"
    ]
}

(Java Language Support extension by Red Hat must be installed.)

It apparently works:

resim

@shreyashsaitwal
Copy link
Owner

java.project.referencedLibraries

Wasn't aware this existed. Thanks a lot!

@jewelshkjony
Copy link
Contributor Author

Yes it's really working.
But it's not working for kotlin, do you've any solution for kotlin too?

@ysfchn
Copy link

ysfchn commented Mar 19, 2023

But it's not working for kotlin, do you've any solution for kotlin too?

I don't know, unfortunately. I accidentally found the above setting while playing with Java extension settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants