From 22667d0ace53e01427c8bfae8624285869cc4d00 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Wed, 6 Sep 2023 13:48:44 +0800 Subject: [PATCH] Add workflows for Code (Insiders) (#164) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add workflows for Code (Insiders) It is basically the variant of `specs/code` – it changes all the `code` to `code-insiders`, while noting “Insiders” in the workflow name. Signed-off-by: pan93412 * Remove unnecessary default_value --------- Signed-off-by: pan93412 Co-authored-by: elvis kahoro --- .../compare_two_files_in_vs_code_insiders.yaml | 14 ++++++++++++++ ...the_currently_open_vs_code_insiders_window.yaml | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 specs/code-insiders/compare_two_files_in_vs_code_insiders.yaml create mode 100644 specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_insiders_window.yaml diff --git a/specs/code-insiders/compare_two_files_in_vs_code_insiders.yaml b/specs/code-insiders/compare_two_files_in_vs_code_insiders.yaml new file mode 100644 index 00000000..c3f5373f --- /dev/null +++ b/specs/code-insiders/compare_two_files_in_vs_code_insiders.yaml @@ -0,0 +1,14 @@ +--- +name: Compare two files in VS Code (Insiders) +command: "code-insiders -d {{file1}} {{file2}}" +tags: ["code-insiders"] +description: Compare two files using code. +arguments: + - name: file1 + description: The first file that you want to compare. + - name: file2 + description: The second file that you want to compare. +source_url: "https://stackoverflow.com/questions/30139597/visual-studio-code-is-there-a-compare-feature-like-that-plugin-for-notepad" +author: wisbucky +author_url: "https://stackoverflow.com/users/1081043/wisbucky" +shells: [] diff --git a/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_insiders_window.yaml b/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_insiders_window.yaml new file mode 100644 index 00000000..92edcce8 --- /dev/null +++ b/specs/code-insiders/open_a_file_or_directory_in_the_currently_open_vs_code_insiders_window.yaml @@ -0,0 +1,13 @@ +--- +name: Open a file or directory in the currently open VS Code (Insiders) window +command: "code-insiders -r {{file_or_directory}}" +tags: ["code-insiders"] +description: Use -r or --reuse-window command line option to attach the currently open VS Code window. +arguments: + - name: file_or_directory + description: The file or directory that you want to open. + default_value: ~ +source_url: "https://stackoverflow.com/questions/41377489/how-to-open-a-file-from-the-integrated-terminal-in-visual-studio-code" +author: zloy-zhake +author_url: "https://stackoverflow.com/users/2807320/zloy-zhake" +shells: []