Skip to content

Commit

Permalink
delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
haithamassoli committed Feb 22, 2023
1 parent 2c096ed commit e89a033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
26 changes: 2 additions & 24 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,7 @@ const getRandomHadith = async () => {
return hadith;
};

/**
* @param {vscode.ExtensionContext} context
*/

function activate(context) {
let disposable = vscode.commands.registerCommand(
"hadith.getHadith",
async function () {
getRandomHadith()
.then(function (response) {
vscode.window.showInformationMessage(response);
})
.catch((error) => {
console.log("error11: ", error);
vscode.window.showInformationMessage(
"โœจ ุฅูู†ู‘ูŽ ุงู„ู„ู‘ูŽู‡ูŽ ูˆูŽู…ูŽู„ุงุฆููƒูŽุชูŽู‡ู ูŠูุตูŽู„ู‘ููˆู†ูŽ ุนูŽู„ูŽู‰ ุงู„ู†ู‘ูŽุจููŠู‘ู ูŠูŽุง ุฃูŽูŠู‘ูู‡ูŽุง ุงู„ู‘ูŽุฐููŠู†ูŽ ุขู…ูŽู†ููˆุง ุตูŽู„ู‘ููˆุง ุนูŽู„ูŽูŠู’ู‡ู ูˆูŽุณูŽู„ู‘ูู…ููˆุง ุชูŽุณู’ู„ููŠู…ู‹ุง"
);
});
}
);

function activate() {
const repeatedEveryMinute = vscode.workspace
.getConfiguration("hadith")
.get("repeatedEveryMinute");
Expand All @@ -64,14 +44,12 @@ function activate(context) {
.then(function (response) {
vscode.window.showInformationMessage(response, "X");
})
.catch((error) => {
.catch(() => {
vscode.window.showInformationMessage(
"โœจ ุฅูู†ู‘ูŽ ุงู„ู„ู‘ูŽู‡ูŽ ูˆูŽู…ูŽู„ุงุฆููƒูŽุชูŽู‡ู ูŠูุตูŽู„ู‘ููˆู†ูŽ ุนูŽู„ูŽู‰ ุงู„ู†ู‘ูŽุจููŠู‘ู ูŠูŽุง ุฃูŽูŠู‘ูู‡ูŽุง ุงู„ู‘ูŽุฐููŠู†ูŽ ุขู…ูŽู†ููˆุง ุตูŽู„ู‘ููˆุง ุนูŽู„ูŽูŠู’ู‡ู ูˆูŽุณูŽู„ู‘ูู…ููˆุง ุชูŽุณู’ู„ููŠู…ู‹ุง"
);
});
}, convertMinutesToMs);

context.subscriptions.push(disposable);
}

function deactivate() {}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"Islam"
],
"activationEvents": [
"*",
"onCommand:hadith.getHadith"
"*"
],
"main": "./extension.js",
"contributes": {
Expand Down

0 comments on commit e89a033

Please sign in to comment.