From 5b9205d51ff6cd8effbf586709b118a3344b400a Mon Sep 17 00:00:00 2001 From: zawys Date: Sat, 6 Feb 2021 00:00:00 +0000 Subject: [PATCH] fix texts of initial settings assistant --- CHANGELOG.md | 4 ++++ src/settingsAssistant.ts | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a590156..eb17f50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to ## [Unreleased] +### Fixed + +- Texts of notifications from initial settings assistant + ## [0.11.0] - 2020-12-19 ### Added diff --git a/src/settingsAssistant.ts b/src/settingsAssistant.ts index b7cee71..d5be40e 100644 --- a/src/settingsAssistant.ts +++ b/src/settingsAssistant.ts @@ -172,10 +172,10 @@ class GitOptionAssistant implements OptionAssistant { return { question: `Change Git option \`${this.key}\`. \n` + - `Reason: ${this.description} \n` + + `Reason: ${this.description}. \n` + "Current value" + - (currentValue === undefined ? " unset" : `: \`${currentValue}\`. \n`) + - `New value: ${this.targetValue}.`, + (currentValue === undefined ? " unset" : `: \`${currentValue}\``) + + `. \nNew value: ${this.targetValue}.`, options: [ new Option(`Globally`, GitOptionAssistant.globalValue), new Option(`In repository`, GitOptionAssistant.repositoryValue), @@ -268,7 +268,7 @@ class VSCodeOptionAssistant implements OptionAssistant { return Promise.resolve({ question: `Change VS Code option \`${this.section}\`. \n` + - `Reason: ${this.description} \n` + + `Reason: ${this.description}. \n` + `Current value: \`${JSON.stringify(currentValue)}\`. \n` + `New value: ${JSON.stringify(this.targetValue)}.`, options: [