Skip to content

Custom menu bar entries#50

Merged
pimotte merged 17 commits intomappingfrom
custom-menu-bar-entries
Mar 3, 2026
Merged

Custom menu bar entries#50
pimotte merged 17 commits intomappingfrom
custom-menu-bar-entries

Conversation

@DikieDick
Copy link
Copy Markdown
Contributor

Targets the 'mapping' branch.

@DikieDick DikieDick requested a review from XyntaxCS December 30, 2025 16:07
@DikieDick DikieDick marked this pull request as ready for review February 16, 2026 11:57
@DikieDick
Copy link
Copy Markdown
Contributor Author

Needs to be brought up to date with mapping before merging.

Copy link
Copy Markdown
Contributor

@pimotte pimotte left a comment

Choose a reason for hiding this comment

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

I have one questions and once we resolve that I think this is ready for merge along with the companion PR:)

Comment thread package.json
"prosemirror-view": "1.34.3"
},
"peerDependencies": {
"@codemirror/autocomplete": "6.18.1",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we have these as peerDependencies? I understand that technically these might be optional, but in practice, mostly everyone who builds on Waterproof editor would need them, and it seems we could save some hassle by just including them.

Copy link
Copy Markdown
Contributor Author

@DikieDick DikieDick Mar 2, 2026

Choose a reason for hiding this comment

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

They are peerDependencies as we don't wont to bundle the code for codemirror here. If we would do that, then we get more than 1 version of @codemirror/state, in fact we get one per project that uses it (so every language package and waterproof-editor). This leads to the problem that you discovered in waterproof-vscode.

Using peerDependencies should mean that they get installed when waterproof-editor is installed as a dependency, since waterproof-editor is a library and not a 'final product' this was okay in my opinion.

Furthermore, having them separated in peerDependencies means that I can easily stop esbuild from bundling these, by refering to the package.json

@pimotte pimotte merged commit 3fc3b56 into mapping Mar 3, 2026
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.

2 participants