Skip to content

Ignore untitled: URIs in LSP#580

Merged
soutaro merged 3 commits intomasterfrom
lsp-untitled
Jun 15, 2022
Merged

Ignore untitled: URIs in LSP#580
soutaro merged 3 commits intomasterfrom
lsp-untitled

Conversation

@soutaro
Copy link
Owner

@soutaro soutaro commented Jun 15, 2022

VSCode sends LSP requests with untitled: scheme URI when the file is not saved.

{:textDocument=>{:uri=>"untitled:Untitled-1", :languageId=>"ruby", :version=>6, :text=>"1+\"\"\n"}}}

Steep ignores that messages by processing only file: scheme URIs.

@soutaro
Copy link
Owner Author

soutaro commented Jun 15, 2022

Closes #574 because of duplication.

@soutaro soutaro merged commit c29b758 into master Jun 15, 2022
@soutaro soutaro deleted the lsp-untitled branch June 15, 2022 02:16
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.

1 participant