Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 6845ff2

Browse files
camdencheektaiyab
andauthored
Web app: open in editor copy updates (#61115)
Co-authored-by: Taiyab Raja <taiyab.raja@gmail.com>
1 parent af99bd6 commit 6845ff2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

client/web/src/open-in-editor/OpenInEditorPopover.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mdiClose } from '@mdi/js'
44
import { VisuallyHidden } from '@reach/visually-hidden'
55
import classNames from 'classnames'
66

7-
import { Button, H3, Icon, Input, Link, Select, Text, Form } from '@sourcegraph/wildcard'
7+
import { Button, H3, Icon, Input, Link, Select, Text, Form, Code } from '@sourcegraph/wildcard'
88

99
import { isProjectPathValid } from './build-url'
1010
import type { EditorSettings } from './editor-settings'
@@ -75,15 +75,15 @@ export const OpenInEditorPopover: React.FunctionComponent<
7575
<>
7676
<H3>Set your preferred editor</H3>
7777
<Text>
78-
Open this and other files directly in your editor. Set your project path and editor to get started.
79-
Update anytime in your user settings.
78+
Open this and other files directly in your editor. Set your path and editor to get started. Update
79+
any time in your user settings.
8080
</Text>
8181

8282
<Form onSubmit={onSubmit} noValidate={true}>
8383
<Input
8484
id="OpenInEditorForm-projectPath"
8585
type="text"
86-
label="Project path"
86+
label="Default projects path"
8787
name="projectPath"
8888
placeholder="/Users/username/projects"
8989
required={true}
@@ -95,6 +95,11 @@ export const OpenInEditorPopover: React.FunctionComponent<
9595
onChange={onProjectPathChange}
9696
className={classNames('mr-sm-2')}
9797
/>
98+
<aside className="small text-muted">
99+
The directory that contains your repository checkouts. For example, if this repository is
100+
checked out to <Code>/Users/username/projects/cody</Code>, then set your default projects path
101+
to <Code>/Users/username/projects</Code>.
102+
</aside>
98103
<Select
99104
id="OpenInEditorForm-editor"
100105
label="Editor"

0 commit comments

Comments
 (0)