I'm trying to use VS Code to write Java programs which are built Bazel. Most of vs code extensions don't know about Bazel. Therefore code complete works only for the .java files understand the same folder.
我正在尝试使用VS Code编写构建Bazel的Java程序。大多数vs代码扩展都不了解Bazel。因此代码完整只适用于.java文件,了解相同的文件夹。
I came up.with this idea of generating Eclipse's .project and .classpath out of Bazel java_* targets. I manually created these files and code completion worked perfectly.
我想到了从Bazel java_ *目标中生成Eclipse的.project和.classpath的想法。我手动创建这些文件,代码完成工作完美。
So now the question boils down to: how can I automatically generate .project and .classpath files in the same diretore of BUILD file?
所以现在问题归结为:如何在BUILD文件的同一个diretore中自动生成.project和.classpath文件?
1 个解决方案
#1
2
Sounds like they already decided not support it: https://github.com/bazelbuild/bazel/issues/3376
听起来他们已经决定不支持它:https://github.com/bazelbuild/bazel/issues/3376
#1
2
Sounds like they already decided not support it: https://github.com/bazelbuild/bazel/issues/3376
听起来他们已经决定不支持它:https://github.com/bazelbuild/bazel/issues/3376