Skip to content

Commit

Permalink
fix documentation for DebugService.stopSession
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Jul 8, 2020
1 parent 0e96426 commit af9af1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/browser/debugService.ts
Expand Up @@ -704,7 +704,7 @@ export class DebugService implements IDebugService {
});
}

stopSession(session: IDebugSession): Promise<any> {
stopSession(session: IDebugSession | undefined): Promise<any> {
if (session) {
return session.terminate();
}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/debug/common/debug.ts
Expand Up @@ -868,7 +868,7 @@ export interface IDebugService {
restartSession(session: IDebugSession, restartData?: any): Promise<any>;

/**
* Stops the session. If the session does not exist then stops all sessions.
* Stops the session. If no session is specified then all sessions are stopped.
*/
stopSession(session: IDebugSession | undefined): Promise<any>;

Expand Down

0 comments on commit af9af1e

Please sign in to comment.