Add Word Wrap menu option to Editor React monaco context menu in Documents Tab (#1922)

* Remove "Go to Symbol..." menu option by default in monaco. Add option to toggle word wrap.

* Remove code that removes "Go to symbol" as it is not a public API

* Move WordWrap context menu item to its own section. Remove unnecessary parameters.

* Fix format
This commit is contained in:
Laurent Nguyen
2024-08-02 17:53:00 +02:00
committed by GitHub
parent 31773ee73b
commit bc479fb808
2 changed files with 30 additions and 2 deletions

View File

@@ -1876,6 +1876,7 @@ export const DocumentsTabComponent: React.FunctionComponent<IDocumentsTabCompone
lineNumbers={"on"}
theme={"_theme"}
onContentChanged={_onEditorContentChange}
enableWordWrapContextMenuItem={true}
/>
)}
{selectedRows.size > 1 && (