From 616500ab834470e502af68b05ecb326accc39272 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 20 Apr 2020 14:06:30 +0300 Subject: [PATCH 1/4] Changed import section --- web/src/editor/props.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/editor/props.ts b/web/src/editor/props.ts index 91410fc5..4551306a 100644 --- a/web/src/editor/props.ts +++ b/web/src/editor/props.ts @@ -5,7 +5,7 @@ export const LANGUAGE_GOLANG = 'go'; export const DEMO_CODE = [ 'package main\n', - 'import "fmt"\n', + 'import (\n"fmt"\n)', 'func main() {', '\tfmt.Println("Hello World")', '}\n' @@ -34,4 +34,4 @@ export const stateToOptions = (state: MonacoSettings): monaco.editor.IEditorOpti minimap: {enabled: state.minimap}, contextmenu: contextMenu, }; -}; \ No newline at end of file +}; From 7ea8cf2154b3ab4f3a97f6a01cbb57db2e16fe22 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 20 Apr 2020 14:07:56 +0300 Subject: [PATCH 2/4] added one more new line symbol --- web/src/editor/props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/editor/props.ts b/web/src/editor/props.ts index 4551306a..1b86a9ad 100644 --- a/web/src/editor/props.ts +++ b/web/src/editor/props.ts @@ -5,7 +5,7 @@ export const LANGUAGE_GOLANG = 'go'; export const DEMO_CODE = [ 'package main\n', - 'import (\n"fmt"\n)', + 'import (\n"fmt"\n)\n', 'func main() {', '\tfmt.Println("Hello World")', '}\n' From b7adcb7e6c3878472e40df2f496265554aff0c81 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 20 Apr 2020 14:11:19 +0300 Subject: [PATCH 3/4] added tab --- web/src/editor/props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/editor/props.ts b/web/src/editor/props.ts index 1b86a9ad..8af4bb88 100644 --- a/web/src/editor/props.ts +++ b/web/src/editor/props.ts @@ -5,7 +5,7 @@ export const LANGUAGE_GOLANG = 'go'; export const DEMO_CODE = [ 'package main\n', - 'import (\n"fmt"\n)\n', + 'import (\n"\t\tfmt"\n)\n', 'func main() {', '\tfmt.Println("Hello World")', '}\n' From ab993b49abe48ad1d348f25a580e6fd7413fc006 Mon Sep 17 00:00:00 2001 From: Roman Kosyi Date: Mon, 20 Apr 2020 15:29:11 +0300 Subject: [PATCH 4/4] Update web/src/editor/props.ts Co-Authored-By: Denis Sedchenko --- web/src/editor/props.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/editor/props.ts b/web/src/editor/props.ts index 8af4bb88..aa010fb9 100644 --- a/web/src/editor/props.ts +++ b/web/src/editor/props.ts @@ -5,7 +5,9 @@ export const LANGUAGE_GOLANG = 'go'; export const DEMO_CODE = [ 'package main\n', - 'import (\n"\t\tfmt"\n)\n', + 'import (', + '\t"fmt"', + ')', 'func main() {', '\tfmt.Println("Hello World")', '}\n'