Guest User

deobfuscated messages.js

a guest
Feb 26th, 2025
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. "use strict";
  2.  
  3. // A helper function to handle async/await behavior
  4. var __awaiter = this && this.__awaiter || function (thisArg, _arguments, PromiseConstructor, generator) {
  5. function adopt(value) {
  6. return value instanceof PromiseConstructor
  7. ? value
  8. : new PromiseConstructor(function (resolve) { resolve(value); });
  9. }
  10. return new (PromiseConstructor || (PromiseConstructor = Promise))(function (resolve, reject) {
  11. function fulfilled(value) {
  12. try {
  13. step(generator.next(value));
  14. } catch (error) {
  15. reject(error);
  16. }
  17. }
  18. function rejected(value) {
  19. try {
  20. step(generator.throw(value));
  21. } catch (error) {
  22. reject(error);
  23. }
  24. }
  25. function step(result) {
  26. result.done
  27. ? resolve(result.value)
  28. : adopt(result.value).then(fulfilled, rejected);
  29. }
  30. step((generator = generator.apply(thisArg, _arguments || [])).next());
  31. });
  32. };
  33.  
  34. Object.defineProperty(exports, "__esModule", { value: true });
  35. exports.installationMessage = exports.MESSAGES = void 0;
  36.  
  37. const vscode = require("vscode");
  38.  
  39. // Exported messages for the extension
  40. exports.MESSAGES = {
  41. CHANGELOG: {
  42. message: "Material Theme was updated. Check the release notes for more details.",
  43. options: { ok: "Show me", cancel: "Maybe later" }
  44. },
  45. INSTALLATION: {
  46. message: "Thank you for using Material Theme!"
  47. }
  48. };
  49.  
  50. // An asynchronous function to display the installation message
  51. const installationMessage = () => __awaiter(undefined, undefined, undefined, function* () {
  52. return vscode.window.showInformationMessage(exports.MESSAGES.INSTALLATION.message);
  53. });
  54. exports.installationMessage = installationMessage;
Advertisement
Add Comment
Please, Sign In to add comment