Skip to content

Commit ae9ec87

Browse files
committed
reword debug API comments
1 parent 4b79df8 commit ae9ec87

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,18 +588,20 @@ declare module 'vscode' {
588588
* A DebugSource is an opaque stand-in type for the [Source](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Source) type defined in the Debug Adapter Protocol.
589589
*/
590590
export interface DebugSource {
591-
// opaque contents
591+
// Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Source).
592592
}
593593

594594
export namespace debug {
595595

596596
/**
597-
* Converts a "Source" object received via the Debug Adapter Protocol into a Uri that can be used to load its contents.
597+
* Converts a "Source" descriptor object received via the Debug Adapter Protocol into a Uri that can be used to load its contents.
598+
* If the source descriptor is based on a path, a file Uri is returned.
599+
* If the source descriptor uses a reference number, a specific debug Uri (scheme 'debug') is constructed that requires a corresponding VS Code ContentProvider and a running debug session
598600
*
599-
* If the "Source" object has insufficient information to create a uri, an error is thrown.
601+
* If the "Source" descriptor has insufficient information for creating the Uri, an error is thrown.
600602
*
601603
* @param source An object conforming to the [Source](https://microsoft.github.io/debug-adapter-protocol/specification#Types_Source) type defined in the Debug Adapter Protocol.
602-
* @param session An optional debug session that will be used to locate the Debug Adapter Protocol.
604+
* @param session An optional debug session that will be used when the source descriptor uses a reference number to load the contents from an active debug session.
603605
* @return A uri that can be used to load the contents of the source.
604606
*/
605607
export function asDebugSourceUri(source: DebugSource, session?: DebugSession): Uri;

0 commit comments

Comments
 (0)