Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lsp): regression - formatting was broken on windows #21972

Merged
merged 5 commits into from
Jan 18, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jan 17, 2024

@@ -1046,20 +1052,18 @@ impl Inner {
self.fmt_options = Default::default();
self.lint_options = Default::default();
if let Some(config_file) = self.get_config_file()? {
// this doesn't need to be an actual directory because flags is specified as `None`
Copy link
Member Author

@dsherret dsherret Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lies I wrote.

cli/args/mod.rs Outdated
};
Some(files)
},
include: maybe_files_config.include,
Copy link
Member Author

@dsherret dsherret Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reverts this change I made. It shouldn't have been done from what I can tell atm

Edit: Tests failed on CI, so maybe not. Edit 2: Oh, it was used to get the base path. Edit 3: denoland/deno_config#31

@dsherret dsherret marked this pull request as draft January 17, 2024 18:19
@dsherret dsherret marked this pull request as ready for review January 17, 2024 21:38
Self {
check: false,
options: FmtOptionsConfig::default(),
files: FilePatterns::new_with_base(base),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See explanation for this base here: denoland/deno_config#31 (comment)

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no comments

@dsherret dsherret merged commit 35c1652 into denoland:main Jan 18, 2024
14 checks passed
@dsherret dsherret deleted the fix_fmting_windows_lsp branch January 18, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants