algorithm - Efficient autocomplete for a language server - Stack Overflow

I'm currently thinking about how to efficiently implement autocompleteintellisense in a language

I'm currently thinking about how to efficiently implement autocomplete/intellisense in a language server environment.

The task would be to find all symbols/identifiers (e.g. type names, function, constants, etc.) that match a user-typed string. Both the input and the symbols/identifiers are expected to be quite short but some degree of typos should be tolerated.

What should also be accounted for is that in a development environment the actively developed module changes often and rapidly while e.g. imported libraries remain mostly static.

What kind of data-structure / algorithm is favorable in such an application?

I found some older discussion (1 ,2) that suggests Tries and Ngrams but would be happy about an opinion on this (and if there are other ways to do this in 2024).

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745630513a4637080.html

相关推荐

  • algorithm - Efficient autocomplete for a language server - Stack Overflow

    I'm currently thinking about how to efficiently implement autocompleteintellisense in a language

    5小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信