diff --git a/indium-inspector.el b/indium-inspector.el index 62fd9fa..c47bcef 100644 --- a/indium-inspector.el +++ b/indium-inspector.el @@ -70,14 +70,15 @@ (defun indium-inspector--split-properties (properties) "Split PROPERTIES into list where the first element is native properties and the second is the rest." - (seq-reduce (lambda (result property) - (push property - (if (indium-property-native-p property) - (car result) - (cadr result))) - result) - properties - (list nil nil))) + (let ((split (seq-reduce (lambda (result property) + (push property + (if (indium-property-native-p property) + (car result) + (cadr result))) + result) + properties + (list nil nil)))) + (seq-map (lambda (list) (nreverse list)) split))) (defun indium-inspector-pop () "Go back in the history to the last object inspected." diff --git a/indium-render.el b/indium-render.el index a2b7666..b968851 100644 --- a/indium-render.el +++ b/indium-render.el @@ -100,12 +100,8 @@ ACTION should be a function that takes no argument." (insert (format " %s" (indium-remote-object-preview obj)))))) (defun indium-render-properties (properties) - "Insert all items in PROPERTIES sorted by name." - (seq-map #'indium-render-property - (seq-sort (lambda (p1 p2) - (string< (indium-property-name p1) - (indium-property-name p2))) - properties))) + "Insert all items in PROPERTIES." + (seq-map #'indium-render-property properties)) (defun indium-render-property (property &optional separator) "Insert the PROPERTY rendered as a remote object. diff --git a/server/adapters/cdp/index.js b/server/adapters/cdp/index.js index 9247ca5..16ad525 100644 --- a/server/adapters/cdp/index.js +++ b/server/adapters/cdp/index.js @@ -90,6 +90,7 @@ const getProperties = async (id) => { let response = await state.client.Runtime.getProperties({ objectId: id, + ownProperties: true, generatePreview: true }); @@ -97,8 +98,6 @@ const getProperties = async (id) => { name, value: convertRemoteObject(value || get) })); - - return response.result; }; const getCompletion = async ({expression, frameId}) => {