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

feat(formatting): notify users for files under disabled dirs #678

Merged
merged 2 commits into from
Apr 22, 2023

Conversation

Jint-lzxy
Copy link
Collaborator

@Jint-lzxy Jint-lzxy commented Apr 22, 2023

Changes made (added L105-109):

if cwd.find(cwd, disabled_workspaces[i]) ~= nil then
vim.notify(
string.format("[LSP] Formatting support for all files under [%s] is disabled.", disabled_workspaces[i]),
vim.log.levels.WARN,
{ title = "LSP Formatter Warning" }
)
return
end

Copy link
Collaborator

@CharlesChiuGit CharlesChiuGit left a comment

Choose a reason for hiding this comment

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

LGTM

@ayamir ayamir merged commit be8150f into 0.9 Apr 22, 2023
@ayamir ayamir deleted the feat/more-notifications branch April 22, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants