mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
debug: always remove the selected expression from the view model when wrapping up rename box
fixes #45896
This commit is contained in:
parent
d3cda9c633
commit
6251c95a0b
|
@ -146,12 +146,11 @@ export function renderRenameBox(debugService: IDebugService, contextViewService:
|
||||||
const wrapUp = once((renamed: boolean) => {
|
const wrapUp = once((renamed: boolean) => {
|
||||||
if (!disposed) {
|
if (!disposed) {
|
||||||
disposed = true;
|
disposed = true;
|
||||||
|
debugService.getViewModel().setSelectedExpression(undefined);
|
||||||
if (element instanceof Expression && renamed && inputBox.value) {
|
if (element instanceof Expression && renamed && inputBox.value) {
|
||||||
debugService.renameWatchExpression(element.getId(), inputBox.value);
|
debugService.renameWatchExpression(element.getId(), inputBox.value);
|
||||||
debugService.getViewModel().setSelectedExpression(undefined);
|
|
||||||
} else if (element instanceof Expression && !element.name) {
|
} else if (element instanceof Expression && !element.name) {
|
||||||
debugService.removeWatchExpressions(element.getId());
|
debugService.removeWatchExpressions(element.getId());
|
||||||
debugService.getViewModel().setSelectedExpression(undefined);
|
|
||||||
} else if (element instanceof Variable) {
|
} else if (element instanceof Variable) {
|
||||||
element.errorMessage = null;
|
element.errorMessage = null;
|
||||||
if (renamed && element.value !== inputBox.value) {
|
if (renamed && element.value !== inputBox.value) {
|
||||||
|
|
Loading…
Reference in a new issue