Corporate IT/Defender blocking LINQPad's attempt to download copilot npm package

Microsoft IT's internal policies cause Defender to block registry.npmjs.org (WCF category "[TE] NPM URL Block"). I already have @github/copilot installed at %AppData%\npm\copilot.cmd from our internal npm mirror. Is there a way to tell LINQPad's AI to use that existing CLI instead of downloading?

copilot.cmd is in my %path% but it seems LINQPad keeps trying to download it anyway

Answers

  • It's not that straightforward because LINQPad needs the LSP as well as the CLI (separate downloads), and there's a risk of failure if the version doesn't match what the NuGet package expects. Your best bet is to copy the copilot and copilot-language-server folders in %localappdata%\linqpad from another machine.