A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
suppress signature help for external edits (#7528)
Shahmir Varqha3a0899865e8d
diff --git a/frontend/package.json b/frontend/package.jsonindex 1acf47c9ca..e1576c7cc9 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -51,7 +51,7 @@"@lezer/markdown": "^1.6.0","@lezer/python": "^1.1.18","@marimo-team/codemirror-ai": "^0.3.2",- "@marimo-team/codemirror-languageserver": "^1.16.7",+ "@marimo-team/codemirror-languageserver": "^1.16.8","@marimo-team/codemirror-mcp": "^0.1.5","@marimo-team/codemirror-sql": "^0.2.4","@marimo-team/llm-info": "workspace:*",diff --git a/frontend/src/components/editor/ai/ai-completion-editor.tsx b/frontend/src/components/editor/ai/ai-completion-editor.tsxindex ec3fddf180..dd575a2e07 100644--- a/frontend/src/components/editor/ai/ai-completion-editor.tsx+++ b/frontend/src/components/editor/ai/ai-completion-editor.tsx@@ -296,6 +296,8 @@ export const AiCompletionEditor: React.FC<Props> = ({acceptShortcut="Mod-↵"runCell={runCell}borderless={true}+ buttonStyles="hover:shadow-none"+ playButtonStyles="hover:shadow-none"/><RejectCompletionButtononDecline={handleDeclineCompletion}@@ -303,6 +305,7 @@ export const AiCompletionEditor: React.FC<Props> = ({multipleCompletions={false}declineShortcut="Shift-Mod-Delete"borderless={true}+ className="hover:shadow-none"/></>);diff --git a/frontend/src/core/codemirror/replace-editor-content.ts b/frontend/src/core/codemirror/replace-editor-content.tsindex cf4b598e93..17c1dc0e34 100644--- a/frontend/src/core/codemirror/replace-editor-content.ts+++ b/frontend/src/core/codemirror/replace-editor-content.ts@@ -2,6 +2,7 @@import type { TransactionSpec } from "@codemirror/state";import type { EditorView } from "@codemirror/view";+import { suppressSignatureHelp } from "@marimo-team/codemirror-languageserver";/*** Replace the entire content of the editor with new content.@@ -70,6 +71,7 @@ export function replaceEditorContent(// Apply changes with preserved cursor positioneditor.dispatch({changes: { from: 0, to: doc.length, insert: newContent },+ annotations: suppressSignatureHelp.of(true), // External edits should not show signature helpselection: {anchor: newCursorPos,},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex bbf766dfc7..cafc561683 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -140,8 +140,8 @@ importers:specifier: ^0.3.2version: 0.3.2(@codemirror/[email protected])(@codemirror/[email protected])'@marimo-team/codemirror-languageserver':- specifier: ^1.16.7- version: 1.16.7(@codemirror/[email protected])(@codemirror/[email protected])+ specifier: ^1.16.8+ version: 1.16.8(@codemirror/[email protected])(@codemirror/[email protected])'@marimo-team/codemirror-mcp':specifier: ^0.1.5version: 0.1.5(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@modelcontextprotocol/[email protected])@@ -2031,8 +2031,8 @@ packages:'@codemirror/state': ^6'@codemirror/view': ^6- '@marimo-team/[email protected]':- resolution: {integrity: sha512-UxCaxbCFnJZvSZnX3VIsdTiLfisrnkso/myoAN/jnEMAKl2p6jTdEdHk6AG/yPhassSugDeGm0BONS5YCghGow==}+ '@marimo-team/[email protected]':+ resolution: {integrity: sha512-hpoXFy5C/zEYW14fJfhHyTRCHnFnCwJDkBgHFqpfPdjtHaq69gFHIvy+tEBgwoBrBqI0IrLkWA321kB1f0B4Dw==}peerDependencies:'@codemirror/state': ^6'@codemirror/view': ^6@@ -11983,7 +11983,7 @@ snapshots:'@codemirror/view': 6.38.8diff: 8.0.2dependencies:'@codemirror/autocomplete': 6.20.0'@codemirror/lint': 6.9.2