sourcegraph / sourcegraph-vscode-DEPRECATED

*️⃣+ 🆚 = ❤️
https://sourcegraph.com
MIT License
84 stars 20 forks source link

On-Prem vs-code config #138

Open mattdesmarais opened 3 years ago

mattdesmarais commented 3 years ago

Hello Team, When i configure sourcegraph.url to point to my on-prem instances VS code throws "no active editor". The url resolves (via VPN) and works perfectly fine through the browser interfaces.

Can you provide more guidance on sourcegraph.remoteUrlreplacements ? is this referring to an access token (ie: SourceGraph Web -> Settings -> Tokens) or something else ?

Thanks, -Matt

tjkandala commented 3 years ago

Hi Matt,

We throw the "No active editor" error when vscode.window.activeTextEditor is undefined. Have you encountered this error when you run a Sourcegraph command while a file is open?

re sourcegraph.remoteUrlReplacements: This is used to map git remote URLs to Sourcegraph URLs which is only necessary if you've set repositoryPathPattern in your code host configuration (more context in this PR). In the next Sourcegraph release, you won't have to set this anymore since we will respect repositoryPathPattern for editor extension redirects