Example #1
0
        public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg) {
            var containedCommandTarget = GetContainedCommandTarget();
            if (containedCommandTarget != null) {
                if (_workaround == null) {
                    _workaround = new BraceCompletionWorkaround223902(TextView);
                }
                CommandResult result = containedCommandTarget.Invoke(group, id, inputArg, ref outputArg);
                if (result.WasExecuted) {
                    return result;
                }
            }
            _workaround?.Dispose();
            _workaround = null;

            return base.Invoke(group, id, inputArg, ref outputArg);
        }
Example #2
0
        public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg)
        {
            var containedCommandTarget = GetContainedCommandTarget();

            if (containedCommandTarget != null)
            {
                if (_workaround == null)
                {
                    _workaround = new BraceCompletionWorkaround223902(TextView);
                }
                CommandResult result = containedCommandTarget.Invoke(group, id, inputArg, ref outputArg);
                if (result.WasExecuted)
                {
                    return(result);
                }
            }
            _workaround?.Dispose();
            _workaround = null;

            return(base.Invoke(group, id, inputArg, ref outputArg));
        }