Site overview: Adjust additional code editors - #1252
Conversation
| | 'webstorm' | ||
| | 'sublime' | ||
| | 'atom'; | ||
| export type SupportedEditor = 'vscode' | 'phpstorm' | 'cursor' | 'windsurf' | 'webstorm'; |
There was a problem hiding this comment.
We have decided to continue with the five listed editors only. Read more: STU-354.
|
|
||
| export const supportedEditorConfig: Record< SupportedEditor, SupportedEditorConfig > = { | ||
| vscode: { | ||
| label: 'VS Code', |
There was a problem hiding this comment.
We don't want to translate the label. So it's fine to keep here as config.
There was a problem hiding this comment.
Can we make those translatable, but do not translate them by default? See #48 for context.
Also, should we keep the names in sync so we have VS Code in both places instead of Visual Studio Code in one place and VS Code in another?
There was a problem hiding this comment.
It seems to me that supportedEditorConfig has the same mappings as supportedEditorNames but it contains more details.
supportedEditorNames has only been used here previously:
studio/src/modules/user-settings/components/editor-picker.tsx
Lines 36 to 42 in 93adc78
I'd suggest we refactor the usages of supportedEditorNames to use supportedEditorConfig instead, and we can remove supportedEditorNames altogether.
There was a problem hiding this comment.
Thanks for sharing the context. I have added it in 856c0f9
|
|
||
| export const supportedEditorConfig: Record< SupportedEditor, SupportedEditorConfig > = { | ||
| vscode: { | ||
| label: 'VS Code', |
There was a problem hiding this comment.
It seems to me that supportedEditorConfig has the same mappings as supportedEditorNames but it contains more details.
supportedEditorNames has only been used here previously:
studio/src/modules/user-settings/components/editor-picker.tsx
Lines 36 to 42 in 93adc78
I'd suggest we refactor the usages of supportedEditorNames to use supportedEditorConfig instead, and we can remove supportedEditorNames altogether.
gcsecsey
left a comment
There was a problem hiding this comment.
Thanks for carrying out the refactoring and adding translations. Changes LGTM and still work great. 🚢


Related issues
Proposed Changes
Testing Instructions
Pre-merge Checklist