Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
e49b40a9
Unverified
Commit
e49b40a9
authored
Oct 11, 2019
by
Rémi Verschelde
Committed by
GitHub
Oct 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #32591 from HaSa1002/lsp-fatal-crash
fix #32588 out of range crash in language server
parents
06265086
d9dfc449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gdscript_extend_parser.cpp
modules/gdscript/language_server/gdscript_extend_parser.cpp
+1
-1
No files found.
modules/gdscript/language_server/gdscript_extend_parser.cpp
View file @
e49b40a9
...
@@ -298,7 +298,7 @@ void ExtendGDScriptParser::parse_function_symbol(const GDScriptParser::FunctionN
...
@@ -298,7 +298,7 @@ void ExtendGDScriptParser::parse_function_symbol(const GDScriptParser::FunctionN
const
int
line
=
LINE_NUMBER_TO_INDEX
(
p_func
->
line
);
const
int
line
=
LINE_NUMBER_TO_INDEX
(
p_func
->
line
);
r_symbol
.
range
.
start
.
line
=
line
;
r_symbol
.
range
.
start
.
line
=
line
;
r_symbol
.
range
.
start
.
character
=
p_func
->
column
;
r_symbol
.
range
.
start
.
character
=
p_func
->
column
;
r_symbol
.
range
.
end
.
line
=
MAX
(
p_func
->
body
->
end_line
-
2
,
p_func
->
body
->
line
);
r_symbol
.
range
.
end
.
line
=
MAX
(
p_func
->
body
->
end_line
-
2
,
r_symbol
.
range
.
start
.
line
);
r_symbol
.
range
.
end
.
character
=
lines
[
r_symbol
.
range
.
end
.
line
].
length
();
r_symbol
.
range
.
end
.
character
=
lines
[
r_symbol
.
range
.
end
.
line
].
length
();
r_symbol
.
selectionRange
.
start
.
line
=
r_symbol
.
range
.
start
.
line
;
r_symbol
.
selectionRange
.
start
.
line
=
r_symbol
.
range
.
start
.
line
;
r_symbol
.
documentation
=
parse_documentation
(
line
);
r_symbol
.
documentation
=
parse_documentation
(
line
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment