Skip to content

Commit

Permalink
update 1.11.29 realesed
Browse files Browse the repository at this point in the history
  • Loading branch information
tenluap committed Nov 29, 2018
1 parent a95932c commit 77f96ee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 62 deletions.
13 changes: 5 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
<!-- ## [Unreleased]
- Initial release -->

## [Unreleased]
## [1.11.29] - 2018-11-29

- Nativescript language server (coming soon)
- Nativescript editor (coming soon)
- Navivescript Preview (coming soon)
- Nativescript intellisense (coming soon)
- Removed unused npm module from extension
- Fixed nativescript schema
- Fixed event stream vulnerability due to a bad npm module

## [1.11.14] - 2018-11-14

- Fixed red swirling at the end of page element.
- Updated the nativescript schema
- Fix Nativescript extend emulator

- Fix Nativescript extend emulator

## [1.11.7] - 2018-11-7

Expand All @@ -25,7 +23,6 @@
- Fixed xml validation error on root node.
- Fix Nativescript extend emulator tab order


## [1.10.29] - 2018-10-29

- Nativescript intellisense is now available.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ This extension comes with snippets, emulator executor, context menu for Nativesc
# Changes

## [1.11.28] - 2018-11-28
## [1.11.29] - 2018-11-29

- Removed unused npm module from extension
- Fixed nativescript schema
- Fixed event stream vulnerability due to a bad npm module

# Features

Expand Down
2 changes: 1 addition & 1 deletion snippets/xml.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"{NS} Page": {
"prefix": "NSpage",
"body": [
"<Page xmlNS=\"http://www.nativescript.org/tNS.xsd\" loaded=\"onLoaded\" navigatedTo=\"onNavigatedTo\">",
"<Page loaded=\"onLoaded\" navigatedTo=\"onNavigatedTo\">",
" ",
"</Page>"
]
Expand Down
50 changes: 0 additions & 50 deletions src/snippets/snippets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import * as vscode from "vscode";
import { exec, execFile } from "child_process";
import { join, parse } from "path";
// import download from "download";

export class snippet {
bar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 70);
Expand All @@ -12,7 +9,6 @@ export class snippet {
main() {
this.bar.show();
this.snippetStatusBar(this.getSnippetVal());
// this.checkCustomXmlInstalled()
this.context.subscriptions.push(
vscode.commands.registerCommand("nativescript-extend.snippets", arg => {
this.switchSnippets(!this.getSnippetVal());
Expand Down Expand Up @@ -47,50 +43,4 @@ export class snippet {
this.bar.command = "nativescript-extend.snippets";
this.bar.text = val ? "Snippets On" : "Snippets Off";
}

installCustomXml() {
// var downloadPath = join(__dirname);
// var url =
// "https://github.com/ehigiepaul/vscode-nativescript-extend/raw/master/vscode-xml-0.2.0.vsix";
// var file = parse(url).base;

// download(url, downloadPath).then(() => {
// var command = `code --install-extension ${join(__dirname, file)}`;
// exec(command, (err, stdout, stderr) => {
// console.log(stdout);
// console.log("done");
// });

vscode.window
.showInformationMessage(
"Vscode will need restart to round up Nativescript Intellisence",
{ modal: true },
"Restart Later",
"Restart"
)
.then(res => {
switch (res) {
case "Restart Later":
break;
case "Restart":
vscode.commands.executeCommand("workbench.action.reloadWindow");
break;
default:
break;
}
});
// });
}

checkCustomXmlInstalled() {
var check = vscode.workspace
.getConfiguration("nativescript-extend")
.get("intellisence");
if (!check) {
this.installCustomXml();
vscode.workspace
.getConfiguration("nativescript-extend")
.update("intellisence", true, true);
}
}
}
4 changes: 2 additions & 2 deletions src/xsd/content.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export var content = `<?xml version="1.0"?>
<!--SCHEMA VERSION: 2.0.0-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<!-- ActionBar sections -->
<xs:attributeGroup name="actionBarAttributes">
<xs:attribute name="title" type="StringValidator" />
Expand Down Expand Up @@ -755,7 +755,7 @@ export var content = `<?xml version="1.0"?>
<!-- Validator section-->
<xs:simpleType name="BindingValidator">
<xs:restriction base="xs:string">
<xs:pattern value="\{\{.*\}\}" />
<xs:pattern value="\\{\\{.*\\}\\}" />
<xs:whiteSpace value="collapse" />
</xs:restriction>
</xs:simpleType>
Expand Down

0 comments on commit 77f96ee

Please sign in to comment.