diff --git a/examples/servers/hover.py b/examples/servers/hover.py index f7c94ee9..c6f0e322 100644 --- a/examples/servers/hover.py +++ b/examples/servers/hover.py @@ -31,10 +31,10 @@ @server.feature(types.TEXT_DOCUMENT_HOVER) -def hover(params: types.HoverParams): +def hover(ls: LanguageServer, params: types.HoverParams): pos = params.position document_uri = params.text_document.uri - document = server.workspace.get_text_document(document_uri) + document = ls.workspace.get_text_document(document_uri) try: line = document.lines[pos.line]