Skip to content

Commit e52d952

Browse files
chore: backmerge hotfix/2.13.1 (#707)
* fix: not initialized exception in error handling [IDE-1228] (#704) * fix(lsp): improve process handling in LanguageServerWrapper [IDE-1228] - Renamed lsIsAlive() to processIsAlive() for better clarity - Added proper process alive checks before destroying - Added tests to verify initialization and shutdown behavior - Ensures the process is only terminated when it exists, preventing exceptions * chore: add windsurfrules file [IDE-1228] Added windsurfrules file to define standards for AI assistant interactions with the codebase. This includes guidelines for testing, security scanning, issue fixing, and commit message formatting. * chore: remove unneeded imports * docs: updated CHANGELOG.md * test(lsp): improve LanguageServerWrapper shutdown test [IDE-1228] - Improved the shutdown test to properly verify workspace folder clearing and process termination - Removed ineffective test that didn't test actual implementation behavior - Added test to verify process lifecycle management during shutdown (cherry picked from commit ad2b147) * 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 <shawki.hassan@snyk.io> (cherry picked from commit 9ba9809) --------- Co-authored-by: Abdelrahman Shawki Hassan <shawki.hassan@snyk.io>
1 parent 9ba9809 commit e52d952

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)