summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2023-04-15 09:01:51 -0400
committerYuri Sizov <yuris@humnom.net>2023-04-24 17:08:56 +0200
commite6478f5be398e1fd83aeb46188f37e9c4373494e (patch)
tree4173072d42417cb2e0263f64951820ba42e055b2 /modules
parent2eb29d0684dd57212a33856a147ef59408d6ce26 (diff)
Fix typo when parsing LSP function parameters
(cherry picked from commit 879791e305128bcb3c1bf4c6420c9fd0f7c7df0b)
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/language_server/gdscript_extend_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp
index 146ed10ceb..1bf9f85831 100644
--- a/modules/gdscript/language_server/gdscript_extend_parser.cpp
+++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp
@@ -337,7 +337,7 @@ void ExtendGDScriptParser::parse_function_symbol(const GDScriptParser::FunctionN
symbol.kind = lsp::SymbolKind::Variable;
symbol.name = parameter->identifier->name;
symbol.range.start.line = LINE_NUMBER_TO_INDEX(parameter->start_line);
- symbol.range.start.character = LINE_NUMBER_TO_INDEX(parameter->start_line);
+ symbol.range.start.character = LINE_NUMBER_TO_INDEX(parameter->start_column);
symbol.range.end.line = LINE_NUMBER_TO_INDEX(parameter->end_line);
symbol.range.end.character = LINE_NUMBER_TO_INDEX(parameter->end_column);
symbol.uri = uri;