Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(editor): New Code editor based on the TypeScript language service #12285

Merged
merged 55 commits into from
Jan 8, 2025

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Dec 18, 2024

Summary

TODO: needs tests

  • TypeScript autocomplete
  • TypeScript linting
  • TypeScript hover tips
  • Search & replace
  • New keyboard shortcuts based on the VSCode keymap
  • Auto-formatting using prettier (Alt+Shift+F)
  • Remember folded regions and history after refresh
  • Multi cursor
  • Type function in the Code node using JSDoc types
  • Web Worker Architecture
  • Drag/drop in all Code node modes
  • Indentation markers
image image

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1466/overhaul-code-node-p0

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link

cypress bot commented Dec 19, 2024

n8n    Run #8648

Run Properties:  status check passed Passed #8648  •  git commit fe1e8cbb3d: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project n8n
Branch Review node-1466-overhaul-code-node-p0
Run status status check passed Passed #8648
Run duration 04m 51s
Commit git commit fe1e8cbb3d: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Committer Elias Meire
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 489
View all changes introduced in this branch ↗︎

Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested manually too and it all works 👌

Copy link
Contributor

github-actions bot commented Jan 8, 2025

✅ No visual regressions found.

Copy link
Contributor

github-actions bot commented Jan 8, 2025

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit 52ae02a into master Jan 8, 2025
60 checks passed
@elsmr elsmr deleted the node-1466-overhaul-code-node-p0 branch January 8, 2025 10:28
@github-actions github-actions bot mentioned this pull request Jan 8, 2025
@janober
Copy link
Member

janober commented Jan 9, 2025

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released tests-needed This PR needs additional tests ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants