diff --git a/.gitignore b/.gitignore index ee8ad9a..242b973 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ out node_modules .vscode-test/ +nativescript* \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e78295..2cc075e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ +## [2.4.4] - 2019-4-4 + +- Fixed Extensions running on every none nativescript projects. +- Fixed a request #2 made by @shiv19 to remove "Page" string when creating folders. + + ## [1.12.17] - 2018-12-17 - Fixed issue of extension not running properly diff --git a/README.md b/README.md index 35b19b7..4c46be9 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,43 @@

NativeScript Extend for Visual Studio Code

-[![vscode](https://img.shields.io/badge/vscode-v1.28+-373277.svg?style=for-the-badge)](https://code.visualstudio.com/updates/v1_28) [![made in nigeria](https://img.shields.io/badge/made%20in-nigeria-008751.svg?style=for-the-badge)](https://github.com/acekyd/made-in-nigeria) [![Marketplace Version](https://vsmarketplacebadge.apphb.com/version/paul-ehigie-paul.NE.svg?style=for-the-badge "Current Release")](https://marketplace.visualstudio.com/items?itemName=paul-ehigie-paul.nativescript-extend) +[![vscode](https://img.shields.io/badge/vscode-v1.28+-373277.svg?style=for-the-badge)](https://code.visualstudio.com/updates/v1_28)[![made in nigeria](https://img.shields.io/badge/made%20in-nigeria-008751.svg?style=for-the-badge)](https://github.com/ehigiepaul/vscode-nativescript-extend)[![Marketplace Version](https://vsmarketplacebadge.apphb.com/version/paul-ehigie-paul.nativescript-extend.svg?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=paul-ehigie-paul.nativescript-extend)
-Nativescript Extend pack contains snippets for all NativeScript UI core components , basic attributes and their descriptions, emulator runner, context menu and a xml intellisence and validator. With all this listed you now have a perfect extention that will help you on your Nativescript projects This extension will only be available on Nativescript projects. +Nativescript Extend packs all your needs in make your Nativescript projects fast and easy. -This extension comes with snippets, emulator executor, context menu for Nativescript project, snippet toggler and a XML widgets, attributes, parameter validator and intelisense. +This extension will only be available on Nativescript projects. -- All UI layout and widget are prefixed with `NS`. Attributes do not have a prefix. -- You can toggle the snippets off and on, if you and to use the xml intellisense. +This extension comes with snippets, emulator executor, context menu for Nativescript project, snippet toggler and a XML widgets, attributes, parameter validator and intelisense. With all this listed you now have a perfect extention that will help you on your Nativescript projects. + +- All UI layout and widget are prefixed with `NS`. Attributes do not have any prefix. +- You can toggle the snippets off and on, if you want to use the xml intellisense. > _Please note: To get the best out of this extension you wil have to disable or uninstall any nativescript snippets extension._ +> Please if anyone has any feature or fix on this extension, please kindly make a request on our [Github](https://github.com/ehigiepaul/vscode-nativescript-extend/issues) repository. + # Changes -## [1.12.17] - 2018-12-17 +## [2.4.4] - 2019-4-4 -- Fixed issue of extension not running properly -- Performance of extension increased by around 25% +- Fixed Extensions running on every none nativescript projects. +- Fixed a request #2 made by @shiv19 to remove "Page" string when creating folders. # Features - ### Nativescript intellisense and XML validation. - ![intellisense](https://github.com/ehigiepaul/vscode-NE/raw/master/image/intellisense.gif) + ![intellisense](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/intellisense.gif) - ### Emulator - ![emulator](https://github.com/ehigiepaul/vscode-NE/raw/master/image/emulator.gif) + ![emulator](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/emulator.gif) - ### Emulator auto setup - ![emulator auto setup](https://github.com/ehigiepaul/vscode-NE/raw/master/image/auto%20setup.gif) + ![emulator auto setup](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/auto%20setup.gif) - ### Snippets - ![snippets](https://github.com/ehigiepaul/vscode-NE/raw/master/image/snippets.gif) + ![snippets](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/snippets.gif) - ### Snippets toggler - ![snippets](https://github.com/ehigiepaul/vscode-NE/raw/master/image/toggle%20snippets.gif) + ![snippets](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/toggle%20snippets.gif) - ### Explorer Context Menu Page Creation, - ![Context Menu](https://github.com/ehigiepaul/vscode-NE/raw/master/image/cm.gif) + ![Context Menu](https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/image/cm.gif) # Snippets Components keys diff --git a/package-lock.json b/package-lock.json index aa4731a..3f15210 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nativescript-extend", - "version": "1.12.16", + "version": "2.4.4", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2782,9 +2782,9 @@ "dev": true }, "js-yaml": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", - "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", + "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", "dev": true, "requires": { "argparse": "^1.0.7", diff --git a/package.json b/package.json index b28c8aa..0fd6bec 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nativescript-extend", "displayName": "Nativescript Extend", "description": "Nativescript extend tool pack, helps Nativescript developers create cross-platform mobiles easliy with the support of snippets, a xml validator and a run emulator from VSCode", - "version": "1.12.17", + "version": "2.4.4", "icon": "image/icon.png", "publisher": "Paul-Ehigie-Paul", "repository": { diff --git a/src/Context_Menu/util.ts b/src/Context_Menu/util.ts index 34893f0..b6632ab 100644 --- a/src/Context_Menu/util.ts +++ b/src/Context_Menu/util.ts @@ -22,8 +22,8 @@ export class util { vue?: boolean ): void { var d = path.parse(file).name.match(/-\w+|\.\w+/g) - ? path.parse(file).name.replace(/-\w+|\.\w+/g, "") + " Page" - : path.parse(file).name + " Page"; + ? path.parse(file).name.replace(/-\w+|\.\w+/g, "") + : path.parse(file).name; if (vue) { d = ""; } diff --git a/src/emulator/Emulator.ts b/src/emulator/Emulator.ts index 61321f2..8d3d801 100644 --- a/src/emulator/Emulator.ts +++ b/src/emulator/Emulator.ts @@ -13,9 +13,9 @@ export class Emulator extends platformRun { public constructor(private context: vscode.ExtensionContext) { super(); this.setup(); - this.showStatuBar() this.main() - console.log('emulator is working') + this.showStatuBar() + // console.log('emulator is working') } /** @@ -39,9 +39,9 @@ export class Emulator extends platformRun { /** * this checks if the emulator is setup and prompts the user to setup or never show the prompt again */ - private setup() { + private setup() { var check = vscode.workspace.getConfiguration("NE").get("emulatorPath") - var androidPath = process.env.android_home || process.env.android_sdk_root; + var androidPath = process.env.ANDROID_HOME|| process.env.android_home || process.env.android_sdk_root; var emuPlatformExec switch (os.platform()) { @@ -60,13 +60,13 @@ export class Emulator extends platformRun { if (check == "") { - vscode.window.showInformationMessage('Setting up android emulator path vscode'); + vscode.window.showInformationMessage('Setting up android emulator path for vscode'); if (!androidPath) { vscode.window.showInformationMessage('Try and configure your android sdk'); - console.log("not avaliable"); + // console.log("not avaliable"); } else { vscode.workspace.getConfiguration('NE').update('emulatorPath', join(androidPath, 'emulator', emuPlatformExec),true) - vscode.window.showInformationMessage('Android emulator path found and ready to use'); + vscode.window.showInformationMessage('Nativescript Android emulator is up and ready to use. ENJOY'); } } }