diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-08-13 21:24:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-08-13 21:27:57 +0200 |
commit | 81512a3732dd2cad3989fa94c0ec9261c6930030 (patch) | |
tree | 6929ef6556b209b55eba363b069fb07b9cbd47da /modules/gdscript/language_server | |
parent | 4c3ece8c4bdb6d4927e69dce1c9b716ebc93d4ee (diff) |
Style: Cleanup code using `text_editor/completion/use_single_quotes`
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_text_document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/language_server/gdscript_text_document.cpp b/modules/gdscript/language_server/gdscript_text_document.cpp index 9574c765bc..03b1e3fa44 100644 --- a/modules/gdscript/language_server/gdscript_text_document.cpp +++ b/modules/gdscript/language_server/gdscript_text_document.cpp @@ -291,8 +291,8 @@ Dictionary GDScriptTextDocument::resolve(const Dictionary &p_params) { } } else if (item.kind == lsp::CompletionItemKind::Event) { if (params.context.triggerKind == lsp::CompletionTriggerKind::TriggerCharacter && (params.context.triggerCharacter == "(")) { - const String quote_style = EDITOR_DEF("text_editor/completion/use_single_quotes", false) ? "'" : "\""; - item.insertText = quote_style + item.label + quote_style; + const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\""; + item.insertText = item.label.quote(quote_style); } } |