mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
implement modal message API
This commit is contained in:
@@ -17,7 +17,7 @@ export class ExtHostMessageService {
|
||||
this._proxy = threadService.get(MainContext.MainThreadMessageService);
|
||||
}
|
||||
|
||||
showMessage(severity: Severity, message: string, commands: (string | vscode.MessageItem)[]): Thenable<string | vscode.MessageItem> {
|
||||
showMessage(severity: Severity, message: string, options: vscode.MessageOptions, commands: (string | vscode.MessageItem)[]): Thenable<string | vscode.MessageItem> {
|
||||
|
||||
const items: { title: string; isCloseAffordance: boolean; handle: number; }[] = [];
|
||||
|
||||
@@ -33,7 +33,7 @@ export class ExtHostMessageService {
|
||||
}
|
||||
}
|
||||
|
||||
return this._proxy.$showMessage(severity, message, items).then(handle => {
|
||||
return this._proxy.$showMessage(severity, message, options, items).then(handle => {
|
||||
if (typeof handle === 'number') {
|
||||
return commands[handle];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user