Improving completion to support the correct table name for autocompletion and formatting
This commit is contained in:
@@ -33,6 +33,7 @@ class BaseCompletionEngine(ABC):
|
||||
provider: Metadata provider for context-aware suggestions
|
||||
"""
|
||||
self.provider = provider
|
||||
self._id = type(self).__name__
|
||||
|
||||
def get_completions(self, text: str, cursor: Position) -> CompletionResult:
|
||||
"""
|
||||
@@ -169,4 +170,4 @@ class BaseCompletionEngine(ABC):
|
||||
)
|
||||
|
||||
def get_id(self):
|
||||
return type(self).__name__
|
||||
return self._id
|
||||
|
||||
@@ -19,7 +19,7 @@ class BaseMetadataProvider(Protocol):
|
||||
can extend this with additional methods.
|
||||
"""
|
||||
|
||||
def get_style_presets(self) -> list[str]:
|
||||
def list_style_presets(self) -> list[str]:
|
||||
"""
|
||||
Return the list of available style preset names.
|
||||
|
||||
@@ -28,7 +28,7 @@ class BaseMetadataProvider(Protocol):
|
||||
"""
|
||||
...
|
||||
|
||||
def get_format_presets(self) -> list[str]:
|
||||
def list_format_presets(self) -> list[str]:
|
||||
"""
|
||||
Return the list of available format preset names.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user