You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: URI handling for URIs with special/blank characters [IDE-1203][IDE-1235] (#706)
* fix: improve path and URI conversion for cross-platform compatibility
This commit enhances the path and URI conversion functionality to ensure
reliable file path handling across different operating systems.
Specifically improves Windows path handling with proper URI encoding/decoding
and adds comprehensive tests to verify the bidirectional conversion between
paths and URIs works correctly on both POSIX and Windows systems.
* fix: more test cases and use ASCII strings
* fix: toLanguageServerURL
* fix: toLanguageServerURL tests
* fix: improve language server initialization and URI handling [IDE-1203]
- Increase language server initialization timeout from 20L to 2000L
- Add proper error handling when adding content roots
- Run content root addition asynchronously to prevent UI freezes
- Improve error logging with more descriptive messages
- Add user notification when language server fails to initialize
- Replace size > 0 check with isNotEmpty() for better readability
- Fix code formatting and parameter organization
* fix: tests in ReferenceChooserDialogTest.kt
* fix: error handling in fromUriToPath
Co-authored-by: windsurf-bot[bot] <189301087+windsurf-bot[bot]@users.noreply.github.com>
* fix: windsurf suggestion
* fix: test setup for ReferenceChooserDialogTest.kt
* chore: revert timeout
* docs: CHANGELOG.md
* fix: normalize path before using it to persist folderConfig
* fix: Improve folder config path normalization and add tests [IDE-1203]
Ensures that FolderConfigSettings consistently handles folder paths
by normalizing and absolutizing them. The 'folderPath' property
of FolderConfig objects managed by FolderConfigSettings will
now always reflect this normalized, absolute path.
This resolves an issue where the stored folderPath in FolderConfig
objects did not always represent the fully normalized and absolute
path used as the key in the settings map, leading to potential
inconsistencies and failing tests for path normalization.
Key changes include:
- Added FolderConfigSettingsTest.kt with comprehensive unit tests
for path normalization, covering various scenarios including
paths with '.', '..', and equivalent path representations.
- Converted tests to JUnit 4 syntax as per project standards.
- Updated FolderConfigSettings:
- 'addFolderConfig' now stores a copy of the FolderConfig with
its 'folderPath' correctly normalized and absolutized.
- 'createEmpty' now directly instantiates FolderConfig with the
normalized path, improving clarity and efficiency.
- Fixed a compile error in ReferenceChooserDialogTest.kt by
refactoring a direct private field access to use a public method.
* chore: update initialization messaging in summary [IDE-1235]
* refactor: ReferenceChooserDialogTest.kt setup
* refactor: add tests, normalize more paths
* refactor: ensure file separator suffix in folder configs
* fix: tests
---------
Co-authored-by: Abdelrahman Shawki Hassan <[email protected]>
(cherry picked from commit 9ba9809)
0 commit comments