Does IContentProvider.GetContent consider extending asynchronous methods?

SyntaxEditor for WPF Forum

Posted 3 years ago by Sunshine - Appeon
Version: 21.1.1

I am using the completion list, and I need to add detailed descriptions to each item.

I created a detail window provider by inheriting IContentProvider. The method of getting the window content (GetContent) is a synchronous method, but my method of obtaining detailed information is asynchronous. If I use the method of blocking data acquisition, once the asynchronous method has a delay or becomes unresponsive, my program will directly enter the suspended animation state, which is too risky for me.

Visual Studio Code currently has a very popular LSP (Language Server protocol) protocol, and almost all methods need to be called asynchronously. But all the methods of our SyntaxEditor are synchronized, which is very troublesome in the process of expanding the syntax editor, and it is easy to have problems of view freezes or even crashes.

Can this problem be improved?


Comments (1)

Answer - Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA


The IntelliPrompt APIs were originally designed before async features were built into C#.  We have thought about possibly porting over to an async design to help with IntelliPrompt performance in certain circumstances.  It would take some breaking changes to accomplish though.  We will add a suggestion on our TODO list to look into doing that in the future.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.