Ejemplo n.º 1
0
        private IReadOnlyCollection <ICommandHandler> CreateHandlers()
        {
            var completion       = new CompletionSupport();
            var signatureHelp    = new SignatureHelpSupport();
            var typedCharEffects = new TypedCharEffects(completion, signatureHelp);

            return(new ICommandHandler[] {
                new ApplyDiagnosticActionHandler(),
                new CompletionStateHandler(completion),
                new MoveCursorHandler(signatureHelp),
                new ReplaceTextHandler(signatureHelp, completion, typedCharEffects, ArrayPool <char> .Shared),
                new RequestSelfDebugDataHandler(),
                new SetOptionsHandler(_languageManager, ArrayPool <char> .Shared, _options.SetOptionsFromClient),
                new SignatureHelpStateHandler(signatureHelp),
                new SlowUpdateHandler(_options.SlowUpdate),
                new TypeCharHandler(typedCharEffects)
            });
        }
Ejemplo n.º 2
0
        private IReadOnlyCollection <ICommandHandler> CreateHandlers()
        {
            var completion       = new CompletionSupport();
            var signatureHelp    = new SignatureHelpSupport();
            var typedCharEffects = new TypedCharEffects(completion, signatureHelp);

            return(new ICommandHandler[] {
                new ApplyDiagnosticActionHandler(),
                new CompletionStateHandler(completion),
                new MoveCursorHandler(signatureHelp),
                new ReplaceTextHandler(signatureHelp, completion, typedCharEffects, ArrayPool <char> .Shared),
                new RequestSelfDebugDataHandler(),
                #pragma warning disable CS0618 // Type or member is obsolete
                new SetOptionsHandler(_languageManager, ArrayPool <char> .Shared, _extensions.SetOptionsFromClient),
                #pragma warning restore CS0618
                new SignatureHelpStateHandler(signatureHelp),
                new RequestInfoTipHandler(),
                #pragma warning disable CS0618 // Type or member is obsolete
                new SlowUpdateHandler(_extensions.SlowUpdate),
                #pragma warning restore CS0618
                new TypeCharHandler(typedCharEffects)
            });
        }