We have developed a plug-in that can perform code completion. It needs to request the back-end server and then return the corresponding code completion, so it will take some time. The code example I use is as follows, but this will cause the interface to freeze and cannot be entered normally. How should this be? to solve it? I thought of two places that need to be optimized. First, it should be judged when inputting. If the user stops for 1 second without inputting, then go to the backend to request the code completion item. The second is to display the default code completion normally, and then another thread Go to request the backend, and then fill it after the request is completed, but I don't know how to implement it, and I hope to get your help.