-
Notifications
You must be signed in to change notification settings - Fork 59
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: wrap didSaveFile
method with try-finally
block
#495
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,7 +335,14 @@ def LspSavedFile(bnr: number) | |
endif | ||
|
||
for lspserver in lspservers | ||
lspserver.didSaveFile(bnr) | ||
# TODO: implement `catch` block | ||
# Wrap method with `try-finally` block to solve error: | ||
# `E716: Key not present in Dictionary: "supportsDidSave"` | ||
try | ||
lspserver.didSaveFile(bnr) | ||
finally | ||
return | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. even it happened, just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't dive into the entire code base, I just hid the errors that appeared during programming. Perhaps it would be worthwhile to implement the ability to hide errors using a variable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. though @yegappan accepted your/this PR, but i think:
|
||
endtry | ||
endfor | ||
enddef | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how this would happen?