提交 aa853010 编写于 作者: I isidor

do not set variable value if it did not change

fixes #12885
上级 13dd8273
......@@ -119,7 +119,7 @@ function renderRenameBox(debugService: debug.IDebugService, contextViewService:
debugService.removeFunctionBreakpoints(element.getId()).done(null, errors.onUnexpectedError);
} else if (element instanceof model.Variable) {
(<model.Variable>element).errorMessage = null;
if (renamed) {
if (renamed && element.value !== inputBox.value) {
debugService.setVariable(element, inputBox.value)
// if everything went fine we need to refresh that tree element since his value updated
.done(() => tree.refresh(element, false), errors.onUnexpectedError);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册