From 917508e442941431d0aca1aaf2a04b11f8ff725c Mon Sep 17 00:00:00 2001 From: Kathryn Kodama Date: Mon, 28 Oct 2019 11:38:21 -0400 Subject: [PATCH 1/2] change publisher id and use production version of api Signed-off-by: Kathryn Kodama --- README.md | 2 +- package.json | 4 ++-- src/util/starter.ts | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0fcf804..081b923 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VS Code MicroProfile Starter Extension -This is a VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). This extension makes use of the API https://test-start.microprofile.io/api/2. +A VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). The MicroProfile Starter is a community effort by the MicroProfile community. This extension is hosted under the MicroShed organization. This extension makes use of the API https://start.microprofile.io/api/2. ## Quick Start * Install the extension diff --git a/package.json b/package.json index 99c3268..55530b4 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "mp-starter-vscode-ext", "displayName": "MicroProfile Starter", "description": "VS Code extension starter for Eclipse MicroProfile", - "version": "0.1.0", - "publisher": "MicroShed", + "version": "0.2.0", + "publisher": "MicroProfile-Community", "preview": true, "license": "EPL-2.0", "repository": { diff --git a/src/util/starter.ts b/src/util/starter.ts index 5018ff1..2dc1566 100644 --- a/src/util/starter.ts +++ b/src/util/starter.ts @@ -17,7 +17,7 @@ export async function generateProject(): Promise { var request = require('request'); var supportMatrixOptions = { - url: 'https://test-start.microprofile.io/api/2/supportMatrix' + url: 'https://start.microprofile.io/api/2/supportMatrix' }; async function getSupportMatrix(error: any, response: { statusCode: number; }, body: any) { @@ -152,7 +152,7 @@ export async function generateProject(): Promise { }; var options = { - url: 'https://test-start.microprofile.io/api/1/project', + url: 'https://start.microprofile.io/api/2/project', method: 'POST', headers: headers, body: dataString @@ -186,6 +186,8 @@ export async function generateProject(): Promise { } await request(options, callback).pipe(fs.createWriteStream(targetDir + '/' + artifactId + '.zip')); + } else { + vscode.window.showErrorMessage(error); } } request(supportMatrixOptions, getSupportMatrix); From ae3297ff832c65ca26647d73c2a38dfd1bd9ea18 Mon Sep 17 00:00:00 2001 From: Kathryn Kodama Date: Mon, 28 Oct 2019 14:50:02 -0400 Subject: [PATCH 2/2] update description in README Signed-off-by: Kathryn Kodama --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 081b923..1727cda 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VS Code MicroProfile Starter Extension -A VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). The MicroProfile Starter is a community effort by the MicroProfile community. This extension is hosted under the MicroShed organization. This extension makes use of the API https://start.microprofile.io/api/2. +The MicroProfile Starter extension provides support for generating a MicroProfile Maven project with examples based on the Eclipse MicroProfile Starter project (https://start.microprofile.io/) by the MicroProfile community. You will be able to generate a project by choosing a MicroProfile version, server and specifications, such as CDI, Config, Health Check, Metrics, and more. This extension is hosted under the MicroShed organization. ## Quick Start * Install the extension