sourcegraph-vscode-DEPRECATED icon indicating copy to clipboard operation
sourcegraph-vscode-DEPRECATED copied to clipboard

On-Prem vs-code config

Open mattdesmarais opened this issue 5 years ago • 1 comments

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

mattdesmarais avatar Jan 20 '21 15:01 mattdesmarais

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

tjkandala avatar Feb 20 '21 05:02 tjkandala