inline hint for empty lines, right-click to hide, differentiate between empty line and suffix hint (#234773)

This commit is contained in:
Johannes Rieken
2024-11-27 18:08:40 +01:00
committed by GitHub
parent dbc5c12e06
commit 5555f6604d
5 changed files with 127 additions and 41 deletions

View File

@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import { Codicon } from '../../../../base/common/codicons.js';
import { KeyChord, KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';
import { KeyCode, KeyMod } from '../../../../base/common/keyCodes.js';
import { ICodeEditor, isCodeEditor, isDiffEditor } from '../../../../editor/browser/editorBrowser.js';
import { EditorAction2 } from '../../../../editor/browser/editorExtensions.js';
import { EmbeddedDiffEditorWidget } from '../../../../editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js';
@@ -62,8 +62,7 @@ export class StartSessionAction extends Action2 {
keybinding: {
when: EditorContextKeys.focus,
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.KeyI,
secondary: [KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyI)],
primary: KeyMod.CtrlCmd | KeyCode.KeyI
},
icon: START_INLINE_CHAT,
menu: {