From c4f264eea4c4fa28593baf3d830a413904873c8f Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Fri, 13 Dec 2024 15:59:39 -0800 Subject: [PATCH 1/2] Fix space around binary operator translation. --- Extension/i18n/chs/package.i18n.json | 4 ++-- Extension/package.nls.json | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Extension/i18n/chs/package.i18n.json b/Extension/i18n/chs/package.i18n.json index c1c7f42e82..48b573e65b 100644 --- a/Extension/i18n/chs/package.i18n.json +++ b/Extension/i18n/chs/package.i18n.json @@ -160,7 +160,7 @@ "c_cpp.configuration.vcFormat.space.removeBeforeSemicolon.description": "将移除每个分号前的空格。", "c_cpp.configuration.vcFormat.space.insertAfterSemicolon.description": "在每个分号后面插入一个空格。", "c_cpp.configuration.vcFormat.space.removeAroundUnaryOperator.description": "移除一元运算符和操作数之间的空格。", - "c_cpp.configuration.vcFormat.space.aroundBinaryOperator.description": "二进制运算符周围的空格。", + "c_cpp.configuration.vcFormat.space.aroundBinaryOperator.description": "二元运算符周围的空格。", "c_cpp.configuration.vcFormat.space.aroundAssignmentOperator.description": "赋值运算符周围的空格。", "c_cpp.configuration.vcFormat.space.pointerReferenceAlignment.description": "指针和引用运算符周围的空格。", "c_cpp.configuration.vcFormat.space.pointerReferenceAlignment.left.description": "指针和引用运算符左对齐。", @@ -449,4 +449,4 @@ "c_cpp.configuration.refactoring.includeHeader.never.description": "从不包含头文件。", "c_cpp.languageModelTools.configuration.displayName": "C/C++ 配置", "c_cpp.languageModelTools.configuration.userDescription": "活动 C 或 C++ 文件的配置,例如语言标准版本和目标平台。" -} \ No newline at end of file +} diff --git a/Extension/package.nls.json b/Extension/package.nls.json index 92908ad506..c4edcb3c2e 100644 --- a/Extension/package.nls.json +++ b/Extension/package.nls.json @@ -410,7 +410,12 @@ "c_cpp.configuration.vcFormat.space.removeBeforeSemicolon.description": "Spaces are removed before every semicolon.", "c_cpp.configuration.vcFormat.space.insertAfterSemicolon.description": "A space is inserted after every semicolon.", "c_cpp.configuration.vcFormat.space.removeAroundUnaryOperator.description": "Spaces between unary operators and operands are removed.", - "c_cpp.configuration.vcFormat.space.aroundBinaryOperator.description": "Spaces around binary operators.", + "c_cpp.configuration.vcFormat.space.aroundBinaryOperator.description": { + "message": "Spaces around binary operators.", + "comment": [ + "The term \"binary operator\" refers to an operator that takes two operands and not an operator that accepts a binary number." + ] + }, "c_cpp.configuration.vcFormat.space.aroundAssignmentOperator.description": "Spaces around assignment operators.", "c_cpp.configuration.vcFormat.space.pointerReferenceAlignment.description": "Spaces around pointer and reference operators.", "c_cpp.configuration.vcFormat.space.pointerReferenceAlignment.left.description": "Pointer and reference operators are aligned to the left.", From 7f9cfe51b902693546a4d42babc8c29a8dfafe82 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Fri, 13 Dec 2024 16:08:24 -0800 Subject: [PATCH 2/2] Fix. --- Extension/package.nls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/package.nls.json b/Extension/package.nls.json index c4edcb3c2e..f59f981345 100644 --- a/Extension/package.nls.json +++ b/Extension/package.nls.json @@ -413,7 +413,7 @@ "c_cpp.configuration.vcFormat.space.aroundBinaryOperator.description": { "message": "Spaces around binary operators.", "comment": [ - "The term \"binary operator\" refers to an operator that takes two operands and not an operator that accepts a binary number." + "The term \"binary operators\" refers to operators that takes two operands and not operators on binary numbers." ] }, "c_cpp.configuration.vcFormat.space.aroundAssignmentOperator.description": "Spaces around assignment operators.",