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

Option to throw popup on saving error instead of just status bar message #7720

Open
mlfecho opened this issue May 23, 2022 · 0 comments
Open

Comments

@mlfecho
Copy link

mlfecho commented May 23, 2022

Is your feature request related to a problem? Please describe.
The problem is you can try to :w save a no-write-permission file, but not ever see the error message telling you it failed to save.
Messages that exceed the width of the status bar are hidden instead of clipped. There's an outstanding ticket with vscode to address this, but it's been backlogged. microsoft/vscode#84258. Even if that were fixed, I'd want the option of a more obvious notification that the save failed to go through.

Describe the solution you'd like
An option to invoke the native vscode saving mechanism with :w, which will throw a pop-up if there are any errors saving the file. The key is to be obvious when something went wrong. I understand some people will prefer the more subtle status bar messages, so this could be opt-in.

Describe alternatives you've considered
One workaround is to always keep your vscode window maximized, so messages are less likely to exceed the status bar width. However I prefer to keep the window half-screen-width, which hits this issue often with the long paths in our repository.
I've also tried overriding :w in user settings to use the native saving function as proposed by #1282, but that doesn't seem to work.

    "vim.normalModeKeyBindingsNonRecursive": [
        // :w should save whether or not file is dirty,
        // and show pop-up if no write permissions
        {
            "before": [":", "w"],
            "commands": ["workbench.action.files.save"]
        },
    ]

Additional context
vscode_permissionsWarning
vscode_vanishingErrorMsg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants