oxc/crates/oxc_language_server/src
dalaoshu e85827b63f
fix(oxc_language_server): use file_path instead of uri_path (#8736)
closes #8594 

This is because previously, oxlintrc.path was determined by
`path.canonicalize().unwrap_or_else(|_| path.to_path_buf())`, but after
#8214, it was changed to `path.to_path_buf()`. As a result,
`\\?\D:\shulaoda` became `D:\shulaoda`. This caused the condition
`uri_path.starts_with(gitignore.path())` to evaluate as `true`,
preventing the bypass of the `is_ignore` check and exposing the original
code issue.


b1499e6711/crates/oxc_language_server/src/main.rs (L531-L533)
2025-01-26 15:40:22 +01:00
..
linter refactor(isolated_declarations, linter, minifier, prettier, semantic, transformer): remove unnecessary ref / ref mut syntax (#8643) 2025-01-21 14:20:07 +00:00
capabilities.rs refactor(language_server): add capabilities struct (#7906) 2024-12-16 10:25:26 +08:00
main.rs fix(oxc_language_server): use file_path instead of uri_path (#8736) 2025-01-26 15:40:22 +01:00