Skip to content

Commit c21b8ac

Browse files
authored
fix: update README and schema
2 parents a575d8a + 1cf04eb commit c21b8ac

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ Adds a button at the top of files in both Sourcegraph app and code hosts like Gi
44

55
![Screenshot](https://user-images.githubusercontent.com/6304497/94799074-dcfd1d80-03e2-11eb-86fc-e55e03380154.png)
66

7-
## Installing
8-
9-
For Sourcegraph.com, it can be enabled here: https://sourcegraph.com/extensions/sourcegraph/open-in-editor
10-
11-
Otherwise, follow instructions here to publish it privately: https://docs.sourcegraph.com/extensions/authoring/publishing
12-
137
## Settings
148

159
- Add `openineditor.editor` to your user settings to open files in the editor. Copy one of the following lines depending on the editor you would like to use. This extension only supports opening in one editor at a time. Supported editors:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/master/shared/src/schema/extension.schema.json",
2+
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
33
"name": "open-in-editor",
44
"description": "Open the current file in your editor of choice",
55
"publisher": "sourcegraph",
@@ -54,7 +54,8 @@
5454
"properties": {
5555
"openineditor.editor": {
5656
"description": "Editor config to use. Supported: 'vscode', 'idea', 'sublime', 'custom'. If 'custom', also set 'openindeditor.customUrlPattern'",
57-
"type": "string"
57+
"type": "string",
58+
"enum": ["vscode", "idea", "sublime", "custom"]
5859
},
5960
"openineditor.customUrlPattern": {
6061
"description": "The custom URL pattern for your editor of choice. Use placeholders %file, %line, %col.",

0 commit comments

Comments
 (0)