A `Source` is a descriptor for source code. It is returned from the debug adapter as part of a `StackFrame` and it is used by clients when specifying breakpoints.
| 75 | // It is returned from the debug adapter as part of a `StackFrame` and it is |
| 76 | // used by clients when specifying breakpoints. |
| 77 | struct Source { |
| 78 | // Additional data that a debug adapter might want to loop through the client. |
| 79 | // The client should leave the data intact and persist it across sessions. The |
| 80 | // client should not interpret the data. |
| 81 | optional<variant<array<any>, boolean, integer, null, number, object, string>> |
| 82 | adapterData; |
| 83 | // The checksums associated with this file. |
| 84 | optional<array<Checksum>> checksums; |
| 85 | // The short name of the source. Every source returned from the debug adapter |
| 86 | // has a name. When sending a source to the debug adapter this name is |
| 87 | // optional. |
| 88 | optional<string> name; |
| 89 | // The origin of this source. For example, 'internal module', 'inlined content |
| 90 | // from source map', etc. |
| 91 | optional<string> origin; |
| 92 | // The path of the source to be shown in the UI. |
| 93 | // It is only used to locate and load the content of the source if no |
| 94 | // `sourceReference` is specified (or its value is 0). |
| 95 | optional<string> path; |
| 96 | // A hint for how to present the source in the UI. |
| 97 | // A value of `deemphasize` can be used to indicate that the source is not |
| 98 | // available or that it is skipped on stepping. |
| 99 | // |
| 100 | // Must be one of the following enumeration values: |
| 101 | // 'normal', 'emphasize', 'deemphasize' |
| 102 | optional<string> presentationHint; |
| 103 | // If the value > 0 the contents of the source must be retrieved through the |
| 104 | // `source` request (even if a path is specified). Since a `sourceReference` |
| 105 | // is only valid for a session, it can not be used to persist a source. The |
| 106 | // value should be less than or equal to 2147483647 (2^31-1). |
| 107 | optional<integer> sourceReference; |
| 108 | // A list of sources that are related to this source. These may be the source |
| 109 | // that generated this source. |
| 110 | optional<array<Source>> sources; |
| 111 | }; |
| 112 | |
| 113 | DAP_DECLARE_STRUCT_TYPEINFO(Source); |
| 114 |
no outgoing calls
no test coverage detected
searching dependent graphs…