redhat-developer / redhat-developer/vscode-java

Sharing .settings/org.eclipse.buildship.core.prefs between vscode and Eclipse

未关闭
#4,065 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

I am working on a project that is developed by both vscode and Eclipse (different developers). .settings/org.eclipse.buildship.core.prefs is checked into git from Eclipse, and then when the project is opened from vscode, this file is modified (in an unpleasant way - adding a machine-specific java.home and init-script, and changing other settings). This can't be checked in, because it then breaks when opening elsewhere, where the paths are different. It also permutes the .classpath file and other settings files.

java.import.generatesMetadataFilesAtProjectRoot = false is not useful, because the plugin will use the project files if they are present.

The only workaround I can think if is to just remove these from git (ie add to .gitignore). What I would really like is the ability to locate these files in a different location, for Visual Studio (or in a machine configurable way). Then we could keep Eclipse and vscode completely separate.

Is there any other workaround, or possibility of an enhancement to change the file locations?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查扩展如何处理 .settings/org.eclipse.buildship.core.prefs、.classpath 和其他项目设置,包括 java.import.generatesMetadataFilesAtProjectRoot 设置。确定项目元数据位置是否可配置,并确定 VS Code 和 Eclipse 中受影响的行为。当这两个工具能够分别保留各自的项目文件,而无需提交特定于机器的路径时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。