Skip to content

Added auto-closing brackets#822

Open
codeswithroh wants to merge 1 commit intoonflow:stagingfrom
codeswithroh:feature/auto-closing-brackets
Open

Added auto-closing brackets#822
codeswithroh wants to merge 1 commit intoonflow:stagingfrom
codeswithroh:feature/auto-closing-brackets

Conversation

@codeswithroh
Copy link

Description

Adds autoclosing brackets and quotes in the Cadence editor.

  • Enables language-defined auto-closing and auto-surround in the editor.
  • Configures Cadence language brackets, autoClosingPairs, and surroundingPairs.

Most critical files to review:

  • src/util/cadence.ts — adds setLanguageConfiguration with brackets/pairs.
  • src/components/Editor/CadenceEditor/index.tsx — enables autoClosingBrackets, autoClosingQuotes, autoSurround in editor options.

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments