From e55fd1326c0f8b6ce7a1d7909bcba497f125ebdf Mon Sep 17 00:00:00 2001 From: kasecato Date: Sat, 23 Mar 2024 20:58:47 +0900 Subject: [PATCH] Fixed #281 disabled insertLineAfter when notebook --- package.json | 2 +- src/package-with-comment.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2c68077..b128663 100644 --- a/package.json +++ b/package.json @@ -363,7 +363,7 @@ "key": "shift+[Enter]", "mac": "shift+[Enter]", "command": "editor.action.insertLineAfter", - "when": "editorTextFocus && !editorReadonly", + "when": "editorTextFocus && !editorReadonly && !notebookEditorFocused", "intellij": "Start new line" }, { diff --git a/src/package-with-comment.json b/src/package-with-comment.json index 20cbefc..cfad399 100644 --- a/src/package-with-comment.json +++ b/src/package-with-comment.json @@ -468,7 +468,7 @@ "key": "shift+[Enter]", "mac": "shift+[Enter]", "command": "editor.action.insertLineAfter", - "when": "editorTextFocus && !editorReadonly", + "when": "editorTextFocus && !editorReadonly && !notebookEditorFocused", "intellij": "Start new line" }, {