steep icon indicating copy to clipboard operation
steep copied to clipboard

Fix LSP workers crash on file removal

Open tk0miya opened this issue 1 year ago • 0 comments

When a file is removed, VSCode sends a $/file/reset request where the content field is nil.

For example, the following request is sent from VSCode:

[Steep 1.7.1] [interaction:interaction] [frontend] request={:method=>"$/file/reset", :params=>{:uri=>"file:///Users/tkomiya/work/tmp/tmp/sig/app.rbs", :content=>nil}, :jsonrpc=>"2.0"}

This update adds fallbacks to an empty string when the content is nil.

Closes #1236

tk0miya avatar Sep 28 '24 05:09 tk0miya