ITADN

feat(config): add include_routes option to control completion scope

#33Pull Requestrizkyilhampra 创建于 2024-11-22已合并
R
rizkyilhampracommented
Hallo. This PR adds a new configuration option `include_routes` that allows to exclude route completions from the search results. If you want to know why I created this? That's because I got slow completion when I type `route('`, but I don't think that's an issue for some people, so I don't create issue for it, maybe I just got spec issue :). But I think it would be better to make the scope of completion customizable, in this case the routes. Here is the changes i made: - Added new `include_routes` option (defaults to true) - Modified `get_keyword_pattern` function to filter out route patterns when `include_routes` is false - Updated README with documentation for the new option
合并状态:已合并 合并于 2024-11-22 关闭于 2024-11-22 6 条评论