Skip to content

Commit

Permalink
Fix:#2 Version 2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tenluap committed Apr 4, 2019
1 parent a57ef64 commit c11ac95
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
out
node_modules
.vscode-test/
nativescript*
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
<!-- ## [Unreleased]
- Initial release -->

## [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
Expand Down
32 changes: 18 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
<div align="center">
<h1>NativeScript Extend for Visual Studio Code</h1>

[![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)

</div>
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

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Context_Menu/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
}
Expand Down
14 changes: 7 additions & 7 deletions src/emulator/Emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

/**
Expand All @@ -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()) {
Expand All @@ -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');
}
}
}
Expand Down

0 comments on commit c11ac95

Please sign in to comment.