Esempio n. 1
0
        public override int GetCurrentParameterIndex(int startOffset)
        {
            if (hiddenInfo != null && isInCSharpContext)
            {
                return(completionBuilder.GetCurrentParameterIndex(defaultDocument, hiddenInfo, startOffset));
            }

            return(base.GetCurrentParameterIndex(startOffset));
        }
        /*
         * public override bool GetParameterCompletionCommandOffset (out int cpos)
         * {
         *      if (hiddenInfo != null && isInCSharpContext)
         *              return completionBuilder.GetParameterCompletionCommandOffset (defaultEditor, defaultDocumentContext, hiddenInfo, out cpos);
         *
         *      return base.GetParameterCompletionCommandOffset (out cpos);
         * }*/
        public override Task <int> GetCurrentParameterIndex(int startOffset, CancellationToken token)
        {
            if (hiddenInfo != null && isInCSharpContext)
            {
                return(completionBuilder.GetCurrentParameterIndex(defaultEditor, defaultDocumentContext, hiddenInfo, startOffset));
            }

            return(base.GetCurrentParameterIndex(startOffset, token));
        }