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

Delete old clangd installation after installing a new one #402

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sam-mccall
Copy link
Member

NOT READY FOR MERGE: depends on clangd/node-clangd#12

@@ -29,6 +29,10 @@ class UI {
coc.window.showMessage(`Reusing existing ${release} installation in ${this.storagePath}`);
return true;
}
async promptDelete(path: string) : Promise<boolean|undefined> {
coc.window.showMessage(`Deleting previous clangd installation in ${path}`);
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm unsure what the best behavior is here: for vscode we'll prompt and let the user choose delete/keep/dismiss: https://github.com/clangd/vscode-clangd/pull/288/files#diff-66f6667b405ea9ee158525b6f12729e879388bcc95af6a683118aceb012685b0

coc-clangd mostly does the preferred option silently so far.
I'd be happy with delete+log, keep+log, or coc.window.showPrompt(). Modal dialogs are annoying, though...

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.

None yet

1 participant