Conversation
|
@HeikoKlare - When you get some time, can you take a look at this please? |
There was a problem hiding this comment.
🟡 Changes recommended
Preference lookup and persistence error handling must preserve existing behavior and API contracts.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Modernizes WorkspaceRoot by replacing legacy preferences with IEclipsePreferences.
Changes:
- Uses scoped preferences for workspace encoding.
- Explicitly flushes updates and logs persistence failures.
File summaries
| File | Review |
|---|---|
resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/WorkspaceRoot.java |
Two moderate issues (2 votes each): default-scope encoding values are no longer resolved, and flush failures are logged instead of reported as CoreException per the API contract. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Test Results 54 files ±0 54 suites ±0 58m 4s ⏱️ - 1m 30s For more details on these failures and errors, see this check. Results for commit 2eef6c6. ± Comparison against base commit 2d15cf3. ♻️ This comment has been updated with latest results. |
62e824c to
3e60230
Compare
3e60230 to
fb9edf5
Compare
|
Do you think any other actions are still pending? If not, can this be approved and merged now? |
|
@iloveeclipse : Do you want me to check anything else on this pr? or can this be merged? |
fb9edf5 to
2eef6c6
Compare
Fixes two issues in how
WorkspaceRootreads and writes the workspace default encoding preference.getDefaultCharset() - now reads the encoding via
Platform.getPreferencesService()instead of the instance-scope nodedirectly, so it correctly falls back through the scope search order instead of only checking one scope.
setDefaultCharset() - removed the custom override. Since
WorkspaceRoot's path is alwaysIPath.ROOT, it now inheritsContainer#setDefaultCharset(String), which already delegates toCharsetManagerand reports save failures as aCoreExceptioninstead of silently logging them.Partially fixes
#497