clarified signature: more explicit operations;
authorwenzelm
Wed, 15 Jan 2025 15:49:16 +0100
changeset 81826 57b0a02e2774
parent 81825 c551d4a418b9
child 81827 9755a8921fbc
clarified signature: more explicit operations;
src/Pure/library.scala
src/Tools/VSCode/src/component_vscodium.scala
--- a/src/Pure/library.scala	Wed Jan 15 15:13:39 2025 +0100
+++ b/src/Pure/library.scala	Wed Jan 15 15:49:16 2025 +0100
@@ -147,6 +147,8 @@
   def cat_lines(lines: IterableOnce[String]): String =
     lines.iterator.mkString("\n")
 
+  def make_lines(lines: String*): String = cat_lines(lines)
+
   def split_lines(str: String): List[String] = space_explode('\n', str)
 
   def prefix_lines(prfx: String, str: String): String =
--- a/src/Tools/VSCode/src/component_vscodium.scala	Wed Jan 15 15:13:39 2025 +0100
+++ b/src/Tools/VSCode/src/component_vscodium.scala	Wed Jan 15 15:49:16 2025 +0100
@@ -281,13 +281,13 @@
       progress.echo("Prepare ...")
       Isabelle_System.with_copy_dir(vscode_dir, vscode_dir.orig) {
         progress.bash(
-          List(
+          Library.make_lines(
             "set -e",
             platform_info.environment,
             "./prepare_vscode.sh",
             // enforce binary diff of code.xpm
             "cp vscode/resources/linux/code.png vscode/resources/linux/rpm/code.xpm"
-          ).mkString("\n"), cwd = build_dir, echo = progress.verbose).check
+          ), cwd = build_dir, echo = progress.verbose).check
         Isabelle_System.make_patch(build_dir, vscode_dir.orig.base, vscode_dir.base,
           diff_options = "--exclude=.git --exclude=node_modules")
       }