-
Notifications
You must be signed in to change notification settings - Fork 47
Add Code Link Plugin and CLI #508
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
base: main
Are you sure you want to change the base?
Conversation
82924c4 to
1d341eb
Compare
a174ebb to
6fca218
Compare
|
This PR has been automatically marked as stale because it has not had any activity in the last 7 days. It will be closed if no further activity occurs in the next 7 days. |
triozer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First review pass, looks really good!
a82e34b to
5ffe0ac
Compare
| try { | ||
| const shouldDelete = await userActions.requestDeleteDecision(syncState.socket, { | ||
| fileName: effect.fileName, | ||
| requireConfirmation: !config.dangerouslyAutoDelete, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not this also use effect.requireConfirmation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworked this to be more clear, it now always accesses the config directly rather than having a parameter on the effect. Also renamed the effects to be more obvious
| const projectShortHash = shortProjectHash(state.project.id) | ||
|
|
||
| log.debug("Opening WebSocket", { port, attempt, project: projectName }) | ||
| const socket = new WebSocket(`ws://localhost:${port}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use secure web sockets?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think we would gain much, and we'd have to handle certs. I think fine like this?
triozer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- Improve clarity of effect names - Better support deletion of multiple files - Ensure local deletions always require confirmation on resync
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Description
Adds a Code Link Plugin and
framer-code-linkCLI tool for a 2-way link between code files in Framer and local filesystem.Todo
Testing