mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
dialogs: hint dialog content in tests to aid in debugging (#178736)
See https://github.com/microsoft/vscode-discussions/discussions/274 and https://github.com/microsoft/vscode-test/issues/207 Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
parent
0b00feaec1
commit
e95e5ba68d
|
@ -53,7 +53,7 @@ export class DialogService extends Disposable implements IDialogService {
|
|||
prompt<T>(prompt: IPrompt<T>): Promise<IPromptResult<T>>;
|
||||
async prompt<T>(prompt: IPrompt<T> | IPromptWithCustomCancel<T> | IPromptWithDefaultCancel<T>): Promise<IPromptResult<T> | IPromptResultWithCancel<T>> {
|
||||
if (this.skipDialogs()) {
|
||||
throw new Error('DialogService: refused to show dialog in tests.');
|
||||
throw new Error(`DialogService: refused to show dialog in tests. Contents: ${prompt.message}`);
|
||||
}
|
||||
|
||||
const handle = this.model.show({ promptArgs: { prompt } });
|
||||
|
|
Loading…
Reference in a new issue