@fc-components/monaco-editor 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.12",
6
+ "version": "0.1.13",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/monaco-editor.esm.js",
@@ -378,6 +378,10 @@ export default function PromQLEditor(props: PromQLEditorProps & DataProviderPara
378
378
  scrollBeyondLastLine: false,
379
379
  suggest: {
380
380
  showWords: false,
381
+ // 防止补全层自动关闭的关键配置
382
+ filterGraceful: false, // 禁用优雅过滤,避免在输入时关闭补全
383
+ snippetsPreventQuickSuggestions: false, // 允许在代码片段后继续显示补全
384
+ shareSuggestSelections: false, // 不共享选择状态,避免意外关闭
381
385
  },
382
386
  suggestFontSize: 12,
383
387
  wordWrap: 'on',