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

fix: deprecated document getting usage #302

Conversation

hamirmahal
Copy link
Contributor

fixes #301.

_linting_helper(document)


@LSP_SERVER.feature(lsp.TEXT_DOCUMENT_DID_CLOSE)
def did_close(params: lsp.DidCloseTextDocumentParams) -> None:
"""LSP handler for textDocument/didClose request."""
document = LSP_SERVER.workspace.get_document(params.text_document.uri)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mypy output in VSCode warned about these lines.

@karthiknadig karthiknadig self-assigned this May 4, 2024
@karthiknadig karthiknadig added the debt Technical debt or repo cleanup label May 4, 2024
@VSCodeTriageBot VSCodeTriageBot added this to the May 2024 milestone May 4, 2024
@karthiknadig karthiknadig merged commit 3658396 into microsoft:main May 6, 2024
21 of 22 checks passed
@hamirmahal hamirmahal deleted the fix/deprecated-document-getting-usage branch May 6, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt or repo cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'workspace.get_document' has been deprecated, use 'workspace.get_text_document' instead
4 participants