I set it up with a autohotkey client and a python server. I did that because I am actually a linux user now and I intended to write a linux version later. The ahk client uses WinGetTitle to figure out which language you are working on. I wont lie, it is pretty cheap and dirty, but it works smoothly in vs code.
The python server handles the search logic and it is mostly relying on the howdoi project which already did most of the work in this area. So I send a query to howdoi and that does a normal google search (or ddg/bing if you wish) and returns me the results which I further filter down to try and be more useful.