mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[RDCT] GTW-6734: Do not replace data context in Evaluate Expression handler for remote clients
This data context guess and replacement is a hack that allows Evaluate Expression action to work properly in the standalone IDEs. But this doesn't work in CWM and Remote Dev if this action is called from a remote client. Data context in such cases are properly formed by the RDCT Core code, and it should not be replaced by a focus-based guess. GitOrigin-RevId: f19cca7709c3f4b3009daaabe335560729147703
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3b630b66c1
commit
ac5ad8cb0c
+2
-1
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.xdebugger.impl.actions.handlers;
|
||||
|
||||
import com.intellij.codeWithMe.ClientId;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.lang.Language;
|
||||
import com.intellij.lang.LanguageUtil;
|
||||
@@ -52,7 +53,7 @@ public class XDebuggerEvaluateActionHandler extends XDebuggerActionHandler {
|
||||
focusOwner = window.getMostRecentFocusOwner();
|
||||
}
|
||||
}
|
||||
if (focusOwner != null) {
|
||||
if (focusOwner != null && ClientId.isCurrentlyUnderLocalId()) {
|
||||
dataContext = DataManager.getInstance().getDataContext(focusOwner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user