ITADN

Added get_process_id / get_thread_id

#8Pull RequestColinKennedy 创建于 2024-12-29已合并
C
ColinKennedycommented
I noticed that the `pid` and `tid` values that this plugin writes out seem to just be placeholders. I've added implementations for the events that have been working for me and wanted to contribute them back. It's worth noting that `get_thread_id` relies on FFI, which is a Luajit only feature. If Neovim runs from non-luajit then we return the old placeholder thread ID, `1`. That said I think just about everyone using Neovim uses the default lua version which is luajit. So this case should be pretty rare.
合并状态:已合并 合并于 2025-01-04 关闭于 2025-01-04 1 条评论