MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toDapShallow

Method toDapShallow

valdi/vscode_debugger/src/adapter/sources.ts:256–272  ·  view source on GitHub ↗

* Returns a DAP representation without including any nested sources.

()

Source from the content-addressed store, hash-verified

254 * Returns a DAP representation without including any nested sources.
255 */
256 public async toDapShallow(): Promise<Dap.Source> {
257 const existingAbsolutePath = await this._existingAbsolutePath;
258 const dap: Dap.Source = {
259 name: this._name,
260 path: this._fqname,
261 sourceReference: this._sourceReference,
262 presentationHint: this.blackboxed() ? 'deemphasize' : undefined,
263 origin: this.blackboxed() ? localize('source.skipFiles', 'Skipped by skipFiles') : undefined,
264 };
265
266 if (existingAbsolutePath) {
267 dap.sourceReference = 0;
268 dap.path = existingAbsolutePath;
269 }
270
271 return dap;
272 }
273
274 absolutePath(): string {
275 return this._absolutePath;

Callers 2

toDapMethod · 0.95
getLocationIdForMethod · 0.80

Calls 1

blackboxedMethod · 0.95

Tested by

no test coverage detected