From ef634a5272017730d4144ccc1c10fa46d583eecb Mon Sep 17 00:00:00 2001 From: Yaohui Wang Date: Fri, 10 Jun 2022 09:31:40 +0000 Subject: [PATCH] fix: add newline at the end of vmoptions file --- components/ide/jetbrains/image/status/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ide/jetbrains/image/status/main.go b/components/ide/jetbrains/image/status/main.go index 0b77219ae4c76d..3e7ec3d79dc3e8 100644 --- a/components/ide/jetbrains/image/status/main.go +++ b/components/ide/jetbrains/image/status/main.go @@ -364,7 +364,8 @@ func updateVMOptions(alias string, content string) string { if len(userVMOptions) > 0 { vmoptions = deduplicateVMOption(vmoptions, userVMOptions, filterFunc) } - return strings.Join(vmoptions, "\n") + // vmoptions file should end with a newline + return strings.Join(vmoptions, "\n") + "\n" } /**