update completion items
This commit is contained in:
@@ -21,6 +21,7 @@ class StandardCompletionItems:
|
||||
self.__tcl_keyword_list = self.__load_tcl_keyword()
|
||||
self.__nx_procs = self.__load_nx_procs()
|
||||
self.__nx_variables = self.__load_nx_variables()
|
||||
self.__custom_functions = list[lsp.CompletionItem]
|
||||
|
||||
@property
|
||||
def json_data(self):
|
||||
@@ -38,6 +39,14 @@ class StandardCompletionItems:
|
||||
def nx_variables(self):
|
||||
return self.__nx_variables
|
||||
|
||||
@property
|
||||
def custom_functions(self) -> list[lsp.CompletionItem]:
|
||||
return self.__custom_functions
|
||||
|
||||
@custom_functions.setter
|
||||
def custom_functions(self, value: lsp.CompletionItem):
|
||||
self.__custom_functions.append(value)
|
||||
|
||||
def __load_json(self) -> dict:
|
||||
with open(
|
||||
pathlib.Path(__file__).parent.joinpath("completion_list.json"), "r"
|
||||
|
||||
Reference in New Issue
Block a user