Skip to content

Commit ebc99ee

Browse files
misc: add Cursor editor logo for external editor config (#32911)
* misc: add Cursor editor logo for external editor config * changelog entry --------- Co-authored-by: Jennifer Shehane <[email protected]>
1 parent bc99a2b commit ebc99ee

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ _Released 11/18/2025 (PENDING)_
1111
**Misc:**
1212

1313
- The keyboard shortcuts modal now displays the keyboard shortcut for saving Studio changes - `` + `s` for Mac or `Ctrl` + `s` for Windows/Linux. Addressed [#32862](https://github.com/cypress-io/cypress/issues/32862). Addressed in [#32864](https://github.com/cypress-io/cypress/pull/32864).
14+
- The Cursor logo now correctly displays in the External editor dropdown. Addresses [#32062](https://github.com/cypress-io/cypress/issues/32062). Addressed in [#32911](https://github.com/cypress-io/cypress/pull/32911).
1415

1516
## 15.6.0
1617

Lines changed: 1 addition & 0 deletions
Loading

packages/frontend-shared/src/gql-components/ChooseExternalEditor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import Icon from '@cy/components/Icon.vue'
6565
import { useI18n } from '@cy/i18n'
6666
import Select from '@cy/components/Select.vue'
6767
import Input from '@cy/components/Input.vue'
68+
import Cursor from '~icons/logos/cursor'
6869
import VSCode from '~icons/logos/visual-studio-code'
6970
import Atom from '~icons/logos/atom-icon'
7071
import Webstorm from '~icons/logos/webstorm'
@@ -78,6 +79,7 @@ import type { ChooseExternalEditorFragment } from '../generated/graphql'
7879
7980
const icons: Record<string, FunctionalComponent<SVGAttributes, {}>> = {
8081
'code': VSCode,
82+
'cursor': Cursor,
8183
'webstorm': Webstorm,
8284
'atom': Atom,
8385
'sublimetext': Sublime,

packages/frontend-shared/vite.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const makePlugins = (plugins) => {
4343
customCollections: {
4444
// ~icons/cy/book_x16
4545
cy: FileSystemIconLoader(path.resolve(__dirname, './src/assets/icons')),
46+
// ~icons/logos/cursor
47+
logos: FileSystemIconLoader(path.resolve(__dirname, './src/assets/logos')),
4648
...plugins.iconsOptions?.customCollections,
4749
},
4850
iconCustomizer (collection, icon, props) {

packages/frontend-shared/vue-shims.d.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1+
/* eslint-disable import/no-duplicates */
12
declare module 'virtual:*' {
23
import { Component } from 'vue'
34
const src: Component
45
export default src
56
}
67

78
declare module 'virtual:icons/*' {
8-
// eslint-disable-next-line no-duplicate-imports
99
import { FunctionalComponent, SVGAttributes } from 'vue'
1010
const component: FunctionalComponent<SVGAttributes>
1111
export default component
1212
}
1313
declare module '~icons/*' {
14-
// eslint-disable-next-line no-duplicate-imports
1514
import { FunctionalComponent, SVGAttributes } from 'vue'
1615
const component: FunctionalComponent<SVGAttributes>
1716
export default component
1817
}
1918

2019
declare module '~icons/cy/*' {
21-
// eslint-disable-next-line no-duplicate-imports
2220
import { FunctionalComponent, SVGAttributes } from 'vue'
23-
const component: FunctionalComponent<SVGAttributes>
21+
const component: FunctionalComponent<SVGAttributes, {}>
22+
export default component
23+
}
24+
25+
declare module '~icons/logos/*' {
26+
import { FunctionalComponent, SVGAttributes } from 'vue'
27+
const component: FunctionalComponent<SVGAttributes, {}>
2428
export default component
2529
}
2630

2731
declare module '~icons/mdi/*' {
28-
// eslint-disable-next-line no-duplicate-imports
2932
import { FunctionalComponent, SVGAttributes } from 'vue'
3033
const component: FunctionalComponent<SVGAttributes>
3134
export default component

0 commit comments

Comments
 (0)