Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/integration/open_in_editor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To open repository files in your Documents directory:
```json
{
"openInEditor": {
"editorId": "idea",
"editorIds": ["idea"],
"projectPaths.default": "/Users/USERNAME/Documents"
}
}
Expand Down Expand Up @@ -84,7 +84,7 @@ To open repository files in your Documents directory:
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
"projectPaths.default": "/Users/USERNAME/Documents"
}
}
Expand All @@ -97,7 +97,7 @@ To open repository files in your Documents directory:
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
"projectPaths.default": "C:\Users\USERNAME\Documents"
}
}
Expand All @@ -110,7 +110,7 @@ To open repository files in your Home directory:
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
"projectPaths.default": "//wsl$/Ubuntu-18.04/home"
}
}
Expand All @@ -134,7 +134,7 @@ Uses the assigned path for the detected Operating System when available:
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
// basePath is required as the default path when no Operating System is detected
"projectPaths.default": "/Users/USERNAME/Documents/",
"projectPaths.windows": "/C:/Users/USERNAME/folder/",
Expand All @@ -153,7 +153,7 @@ To open directory where the repository files reside in a remote server:
```json
{
"openInEditor": {
"editorId": "custom",
"editorIds": ["custom"],
"projectPaths.default": "/Users/USERNAME/Documents/",
// Replaces USER@HOSTNAME as appropriate.
"custom.urlPattern": "vscode://vscode-remote/ssh-remote+USER@HOSTNAME%file",
Expand All @@ -170,7 +170,7 @@ Adds `sourcegraph-` in front of the string that matches the `(?<=Documents\/)(.*
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
"projectPaths.default": "/Users/USERNAME/Documents/",
"replacements": { "(?<=Documents\/)(.*[\\\/])": "sourcegraph-$1" }
// vscode://file//Users/USERNAME/Documents/REPO-NAME/package.json => vscode://file//Users/USERNAME/Documents/sourcegraph-REPO-NAME/package.json
Expand All @@ -185,7 +185,7 @@ Removes `sourcegraph-` from the final URL.
```json
{
"openInEditor": {
"editorId": "vscode",
"editorIds": ["vscode"],
"projectPaths.default": "/Users/USERNAME/Documents/",
"replacements": { "sourcegraph-": "" }
// vscode://file//Users/USERNAME/Documents/sourcegraph-REST-OF_REPO-NAME/package.json => vscode://file//Users/USERNAME/Documents/REST-OF_REPO-NAME/package.json
Expand Down
Loading