Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

On-Prem vs-code config #138

Open
mattdesmarais opened this issue Jan 20, 2021 · 1 comment
Open

On-Prem vs-code config #138

mattdesmarais opened this issue Jan 20, 2021 · 1 comment

Comments

@mattdesmarais
Copy link

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants