Repository navigation
Commit a7bc559
feat(java): 在项目结构中安全编辑 Eclipse WTP Web Facet 版本 (#31)
* feat(java): edit existing Eclipse WTP Web Facet version safely
* test(java): use exact Web Facet field key in JSON test fixtures
* style(java): apply rustfmt layout to Web Facet settings
* fix(java): 不合规 Facet 文件不再拖垮项目结构页,版本按 jst.java 限定
- 读取 Facet 失败只跳过该来源,上报一次 webFacetUnreadable 降级
- 补齐 2.2/2.3/2.4/6.1,并按 jst.java 过滤可选版本,保存时同样拒绝
- xmltree 开启 attribute-order,写回不再打乱属性顺序,自闭合标签沿用 Eclipse 的 />
- test-module-structure 用真实 JDT LS 覆盖 Facet 读取、不合规文件、版本限制和保存
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): Web Facet 字段 ID 改为 Core 允许的写法,补原生截图
Core 只接受小写字母、数字和 - 组成的字段 ID,webFacetVersion 会让
宿主拒绝整个项目结构页(plugin.settings.invalidSourceEditor)。
- 字段 ID 改为 web-facet-version
- test-module-structure 检查所有分组、来源和字段 ID 符合 Core 规则
- visual.mjs 增加选中 Web Facet 来源的截图,存入 docs/assets/module-structure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: lithe-support[bot] <356900028+lithe-support[bot]@users.noreply.github.com>
Co-authored-by: lick <2188718831@qq.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 02f8007 commit a7bc559
12 files changed
Lines changed: 402 additions & 3 deletions
File tree
- backend
- src
- docs
- assets/module-structure
- e2e/host/desktop/internal/settingswindow
- scripts/compiler
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
372 | 375 | | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
376 | 385 | | |
377 | 386 | | |
378 | 387 | | |
| |||
468 | 477 | | |
469 | 478 | | |
470 | 479 | | |
| 480 | + | |
| 481 | + | |
471 | 482 | | |
472 | 483 | | |
473 | 484 | | |
| |||
479 | 490 | | |
480 | 491 | | |
481 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
482 | 519 | | |
483 | 520 | | |
484 | 521 | | |
| |||
554 | 591 | | |
555 | 592 | | |
556 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
557 | 604 | | |
558 | 605 | | |
559 | 606 | | |
| |||
591 | 638 | | |
592 | 639 | | |
593 | 640 | | |
| 641 | + | |
| 642 | + | |
594 | 643 | | |
595 | 644 | | |
596 | 645 | | |
| |||
769 | 818 | | |
770 | 819 | | |
771 | 820 | | |
| 821 | + | |
| 822 | + | |
772 | 823 | | |
773 | 824 | | |
| 825 | + | |
774 | 826 | | |
775 | 827 | | |
776 | 828 | | |
| |||
0 commit comments