Beispiel #1
0
        public async Task <SignatureHelp> GetSignatureHelpAsync(
            CodeCellId cellId,
            Position position,
            CancellationToken cancellationToken = default)
        {
            if (signatureHelpController == null)
            {
                signatureHelpController = new SignatureHelpController(this);
            }

            return(await signatureHelpController.ComputeSignatureHelpAsync(
                       GetDocument (cellId),
                       position.ToRoslyn(),
                       cancellationToken));
        }
Beispiel #2
0
        public async Task <SignatureHelp> GetSignatureHelpAsync(
            CodeCellId cellId,
            Position position,
            CancellationToken cancellationToken = default)
        {
            if (signatureHelpController == null)
            {
                signatureHelpController = new SignatureHelpController(this);
            }

            return(await signatureHelpController.ComputeSignatureHelpAsync(
                       await GetSourceTextAsync(
                           cellId.ToDocumentId(),
                           cancellationToken),
                       position,
                       cancellationToken));
        }