2018-05-18 13:47:22 +02:00
|
|
|
import {
|
|
|
|
window as Window
|
|
|
|
} from 'vscode';
|
|
|
|
|
|
|
|
import * as ThemeCommands from './../commands';
|
|
|
|
|
2018-06-21 23:02:57 +02:00
|
|
|
const MESSAGES = {
|
|
|
|
INFO: {
|
2018-07-01 19:03:53 +02:00
|
|
|
message: 'Do you want to reload to apply Material Theme Icons to enjoy the full experience?',
|
|
|
|
options: {ok: 'Yeah, releoad', cancel: 'No, thank you'}
|
2018-06-21 23:02:57 +02:00
|
|
|
},
|
|
|
|
CHANGELOG: {
|
2018-07-01 19:03:53 +02:00
|
|
|
message: 'Material Theme was updated. Check the release notes for more details.',
|
|
|
|
options: {ok: 'Show me', cancel: 'Maybe later'}
|
2018-06-21 23:02:57 +02:00
|
|
|
}
|
|
|
|
};
|
2018-05-18 13:47:22 +02:00
|
|
|
|
|
|
|
export const infoMessage = async () => {
|
2018-06-21 23:02:57 +02:00
|
|
|
if (await Window.showInformationMessage(MESSAGES.INFO.message, MESSAGES.INFO.options.ok, MESSAGES.INFO.options.cancel) === MESSAGES.INFO.options.ok) {
|
2018-05-18 13:47:22 +02:00
|
|
|
ThemeCommands.fixIcons();
|
|
|
|
}
|
|
|
|
};
|
2018-06-21 23:02:57 +02:00
|
|
|
|
|
|
|
export const changelogMessage = async () =>
|
|
|
|
await Window.showInformationMessage(MESSAGES.CHANGELOG.message, MESSAGES.CHANGELOG.options.ok, MESSAGES.CHANGELOG.options.cancel) === MESSAGES.CHANGELOG.options.ok;
|