mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-03 03:52:31 +02:00
18 lines
580 B
TypeScript
18 lines
580 B
TypeScript
import { window } from "vscode";
|
|
import { EXTENSION_NAME } from "../constants";
|
|
|
|
|
|
export class Notifications {
|
|
|
|
public static info(message: string, items?: any): Thenable<string> {
|
|
return window.showInformationMessage(`${EXTENSION_NAME}: ${message}`, items);
|
|
}
|
|
|
|
public static warning(message: string, items?: any): Thenable<string> {
|
|
return window.showWarningMessage(`${EXTENSION_NAME}: ${message}`, items);
|
|
}
|
|
|
|
public static error(message: string, items?: any): Thenable<string> {
|
|
return window.showErrorMessage(`${EXTENSION_NAME}: ${message}`, items);
|
|
}
|
|
} |