From 3f99af5f0bd71c2d5a77629bea712ec155969b4e Mon Sep 17 00:00:00 2001 From: Matthew Runyon Date: Thu, 7 Nov 2024 16:16:23 -0600 Subject: [PATCH] Add contextual help for format on save --- .../src/settings/EditorSectionContent.tsx | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/packages/code-studio/src/settings/EditorSectionContent.tsx b/packages/code-studio/src/settings/EditorSectionContent.tsx index eab21ff827..8de19ff214 100644 --- a/packages/code-studio/src/settings/EditorSectionContent.tsx +++ b/packages/code-studio/src/settings/EditorSectionContent.tsx @@ -1,6 +1,14 @@ import React, { useCallback, useState } from 'react'; import { useDispatch } from 'react-redux'; -import { Switch, ActionButton, Icon, Text } from '@deephaven/components'; +import { + Switch, + ActionButton, + Icon, + Text, + ContextualHelp, + Heading, + Content, +} from '@deephaven/components'; import { useAppSelector } from '@deephaven/dashboard'; import { getNotebookSettings, updateNotebookSettings } from '@deephaven/redux'; import { vsSettings } from '@deephaven/icons'; @@ -95,10 +103,23 @@ export function EditorSectionContent(): JSX.Element { Enable Minimap -
- +
+ Format on Save + + Format on Save + + + The Ruff settings control formatting options. Notebooks can be + formatted manually using the right-click context menu. + + +