SublimeDebugger icon indicating copy to clipboard operation
SublimeDebugger copied to clipboard

Fix show the detail in lua table array part

Open huanzai opened this issue 1 year ago • 3 comments

In lua, we need to use both indexed and named filter which to get the detail of table

huanzai avatar Nov 27 '24 15:11 huanzai

This looks like it requests all variables using the paged api which is explicitly not supported by this client and is broadcast to the adapter with supportsVariablePaging: False. If you want to support paging you should add real support for paging not request all variables using filters and paged requests.

What adapter are you trying to support? This adapter is off spec and should be fixed on the adapter side

daveleroy avatar Nov 28 '24 02:11 daveleroy

Ok, I got, I will fix the adapter.

huanzai avatar Nov 28 '24 04:11 huanzai

Here is the relevant parts of the protocol.

  /**
   * Filter to limit the child variables to either named or indexed. If omitted,
   * both types are fetched.
   * Values: 'indexed', 'named'
   */
  filter?: 'indexed' | 'named';

  /**
   * The index of the first variable to return; if omitted children start at 0.
   * The attribute is only honored by a debug adapter if the corresponding
   * capability `supportsVariablePaging` is true.
   */
  start?: number;

  /**
   * The number of variables to return. If count is missing or 0, all variables
   * are returned.
   * The attribute is only honored by a debug adapter if the corresponding
   * capability `supportsVariablePaging` is true.
   */
  count?: number;

All these values can be omitted.

daveleroy avatar Nov 29 '24 18:11 daveleroy