* Returns a DAP representation without including any nested sources.
()
| 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; |
no test coverage detected