Skip to content

Commit

Permalink
add client volar.ignoreTriggerCharacters setting
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Sep 5, 2022
1 parent f71153f commit 1954e6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin.py
Expand Up @@ -89,6 +89,8 @@ def get_text_document_sync(configuration: ClientConfig) -> int:
return TextDocumentSyncKindNone
return TextDocumentSyncKindIncremental

def get_ignored_trigger_characters(configuration: ClientConfig) -> str:
return configuration.settings.get('volar.ignoreTriggerCharacters') or ""

def get_language_features(configuration: ClientConfig) -> dict:
language_features = {
Expand All @@ -108,6 +110,7 @@ def get_language_features(configuration: ClientConfig) -> dict:
"defaultAttrNameCase": get_default_attr_name_case(configuration),
"getDocumentNameCasesRequest": False,
"getDocumentSelectionRequest": False,
"ignoreTriggerCharacters": get_ignored_trigger_characters(configuration)
},
"schemaRequestService": False,
"documentHighlight": True,
Expand Down
5 changes: 5 additions & 0 deletions sublime-package.json
Expand Up @@ -31,6 +31,11 @@
"settings": {
"additionalProperties": false,
"properties": {
"volar.ignoreTriggerCharacters": {
"type": "string",
"default": "",
"description": "Do not trigger the auto-complete popup on these characters."
},
"volar.autoCompleteRefs": {
"default": false,
"description": "Auto-complete Ref value with `.value`.",
Expand Down

0 comments on commit 1954e6b

Please sign in to comment.