Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vs-code-aster",
"displayName": "VS Code Aster",
"version": "1.0.1",
"version": "1.0.2",
"description": "VS Code extension for code_aster",
"publisher": "simvia",
"license": "GPL-3.0",
Expand Down Expand Up @@ -148,4 +148,4 @@
"tailwindcss": "^4.1.17",
"uuid": "^13.0.0"
}
}
}
5 changes: 4 additions & 1 deletion python/lsp/managers/hover_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Relies on CommandCore to get the document registry and CATA metadata
"""
import re
from typing import Optional
from command_core import CommandCore

from lsprotocol.types import (
Expand All @@ -11,6 +12,8 @@
MarkupKind,
)



class HoverManager:
"""
Manager for providing hover info in a code_aster document.
Expand All @@ -19,7 +22,7 @@ class HoverManager:
def __init__(self):
self.core = CommandCore()

def display(self, doc_uri, position) -> Hover | None:
def display(self, doc_uri, position) -> Optional[Hover]:
"""
Return a Hover object for the given document URI and position.
"""
Expand Down