We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 215bcdc commit 7965bc0Copy full SHA for 7965bc0
crates/tmc-langs-framework/src/plugin.rs
@@ -330,8 +330,11 @@ pub trait LanguagePlugin {
330
loop {
331
let next = iter.with_next::<(), _>(|file| {
332
let file_path = file.path()?;
333
+ // Normalize the path to handle Windows backslashes correctly
334
+ let normalized_path = file_path.to_string_lossy().replace('\\', "/");
335
+ let normalized_path = Path::new(&normalized_path);
336
// Only consider entries at the archive root
- if file_path.components().count() == 1 {
337
+ if normalized_path.components().count() == 1 {
338
if file.is_dir() {
339
folders.push(file_path.to_path_buf());
340
} else if file.is_file() {
0 commit comments