diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2020-07-14 07:11:16 -0400 |
---|---|---|
committer | Ryan Roden-Corrent <ryan@rcorre.net> | 2020-07-14 07:11:16 -0400 |
commit | 8dcc39ec91babb282bff69c80bb7f2bde657677f (patch) | |
tree | b36c760c46e5c7edd19867a600baac4db578d7b1 /modules/gdscript/language_server | |
parent | d92fa3b547c93a32425d207ec491361d3cd7ec12 (diff) |
Include gdscript warning name in LSP message.
My initial attempt changed this in the gdscript code, which resulted in
a duplicate warning name in the builtin editor. We should just append
the warning name in the LSP instead.
This uses parens to match what is shown in the builtin editor.
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_extend_parser.cpp | 2 |
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 330530be80..385d5dd7cb 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.cpp +++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp @@ -62,7 +62,7 @@ void ExtendGDScriptParser::update_diagnostics() { const GDScriptWarning &warning = E->get(); lsp::Diagnostic diagnostic; diagnostic.severity = lsp::DiagnosticSeverity::Warning; - diagnostic.message = warning.get_message(); + diagnostic.message = "(" + warning.get_name() + "): " + warning.get_message(); diagnostic.source = "gdscript"; diagnostic.code = warning.code; lsp::Range range; |