예제 #1
0
        public int Exec(ref Guid cmdGroup, uint key, uint cmdExecOpt, IntPtr pvaIn, IntPtr pvaOut)
        {
            char inputCharacter = key.GetInputCharacter(cmdGroup, pvaIn);

            if (_sessionManager.IsCompletionCommitted(key, inputCharacter))
            {
                return(VSConstants.S_OK);
            }

            int keyPressResult = _nextCommand.Exec(ref cmdGroup, key, cmdExecOpt, pvaIn, pvaOut);

            return(_sessionManager.IsCompletionStarted(key, inputCharacter) ? VSConstants.S_OK : keyPressResult);
        }