mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix autocompletion hint for toolshed strings (#5584)
* Fix autocompletion hint for toolshed strings * Split functionality * Remove combined flag
This commit is contained in:
@@ -276,10 +276,14 @@ public sealed partial class DebugConsole
|
||||
// This means that letter casing will match the completion suggestion.
|
||||
CommandBar.CursorPosition = lastRange.end;
|
||||
CommandBar.SelectionStart = lastRange.start;
|
||||
var insertValue = CommandParsing.Escape(completion);
|
||||
|
||||
var insertValue = (completionFlags & CompletionOptionFlags.NoEscape) == 0
|
||||
? CommandParsing.Escape(completion)
|
||||
: completion;
|
||||
|
||||
// If the replacement contains a space, we must quote it to treat it as a single argument.
|
||||
var mustQuote = insertValue.Contains(' ');
|
||||
var mustQuote = (completionFlags & CompletionOptionFlags.NoQuote) == 0 && insertValue.Contains(' ');
|
||||
|
||||
if ((completionFlags & CompletionOptionFlags.PartialCompletion) == 0)
|
||||
{
|
||||
if (mustQuote)
|
||||
|
||||
Reference in New Issue
Block a user