From 0f08fb83228bea6483e33f8e036d6801c67b91bd Mon Sep 17 00:00:00 2001 From: Silico_Biomancer Date: Mon, 13 Jan 2025 09:34:56 +1300 Subject: [PATCH] Add file save action via command pallete to vscode (#1676) Currently it uses the default ctrl+s, which is fine for a default setup but messes up if, for example, you use the vim extension. Not including the save command directly seems like an oversight, especially since the save_all command is right there --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jeff Knaus --- apps/vscode/vscode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/vscode/vscode.py b/apps/vscode/vscode.py index 5a012899b1..4345cbf89f 100644 --- a/apps/vscode/vscode.py +++ b/apps/vscode/vscode.py @@ -106,6 +106,9 @@ def indent_less(): def save_all(): actions.user.vscode("workbench.action.files.saveAll") + def save(): + actions.user.vscode("workbench.action.files.save") + def find_next(): actions.user.vscode("editor.action.nextMatchFindAction")