From 8de4c30f8058825aedd0fb9cc70e34673f47aff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 12 Jun 2018 23:18:31 +0200 Subject: [PATCH] Allow configuring monaco minimap from tfw config.ts --- src/app/config.ts | 3 ++- src/app/ide/ide.component.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/config.ts b/src/app/config.ts index 4e95c84..1abb6ad 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -30,7 +30,8 @@ export const config = { showDeployButton: true, reloadIframeOnDeploy: true, showConsoleOnDeploy: true, - autoDetectFileLanguage: true + autoDetectFileLanguage: true, + showMiniMap: false }, terminal: { route: 'shell' diff --git a/src/app/ide/ide.component.ts b/src/app/ide/ide.component.ts index 60a3b25..efdf28d 100644 --- a/src/app/ide/ide.component.ts +++ b/src/app/ide/ide.component.ts @@ -50,7 +50,7 @@ export class IdeComponent implements OnInit { theme: 'vs-dark', language: config.ide.defaultLanguage, glyphMargin: false, - minimap: {enabled: false} + minimap: {enabled: config.ide.showMiniMap} }; @Output() newLogs = new EventEmitter();