Пример #1
0
        public async Task <ImmutableArray <CompletionItem> > CompleteCodeAsync(int lineId, string code)
        {
            await          initialization;
            ReplSubmission replSubmission = workspaceManager.CreateOrUpdateSubmission(lineId, code);

            return(await this.codeCompleter.Complete(replSubmission));
        }
Пример #2
0
        public async Task <IReadOnlyList <ReplCompletion> > CompleteCodeAsync(Guid lineId, string code, int caretIndex)
        {
            await requiredInitialization.ConfigureAwait(false);

            var submission = workspaceManager.CreateOrUpdateSubmission(lineId, code, speculative: true);

            return(await codeCompleter.Complete(submission, caretIndex).ConfigureAwait(false));
        }