Skip to content

Commit

Permalink
feat: Use DSPValue::getValueString for detail computation
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKroiss authored and mickaelistria committed Jan 21, 2025
1 parent 1a442b8 commit c0acfb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.lsp4e.debug/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: Debug Adapter client for Eclipse IDE (Incubation)
Bundle-SymbolicName: org.eclipse.lsp4e.debug;singleton:=true
Bundle-Vendor: Eclipse LSP4E
Bundle-Version: 0.15.14.qualifier
Bundle-Version: 0.15.15.qualifier
Bundle-Activator: org.eclipse.lsp4e.debug.DSPPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDisconnect;
import org.eclipse.debug.core.model.ILineBreakpoint;
import org.eclipse.debug.core.model.ITerminate;
Expand All @@ -30,6 +31,7 @@
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.viewers.IFontProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.lsp4e.debug.DSPPlugin;
import org.eclipse.lsp4e.debug.debugmodel.DSPDebugElement;
import org.eclipse.lsp4e.debug.debugmodel.DSPThread;
import org.eclipse.osgi.util.NLS;
Expand Down Expand Up @@ -187,8 +189,12 @@ public void setAttribute(String attribute, @Nullable Object value) {

@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
// TODO Auto-generated method stub

try {
listener.detailComputed(value, value.getValueString());
} catch (DebugException e) {
// Should not happen, because DSPValue does not throw this exception
DSPPlugin.logError("Failed to compute detail value", e);
}
}

public static Display getDisplay() {
Expand Down

0 comments on commit c0acfb3

Please sign in to comment.