Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Tidied
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaustin700 committed Aug 25, 2020
1 parent b1e86d0 commit f60a9f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import { MessageOptions } from 'vscode';
const got = require('got');

// this method is called when your extension is activated
Expand All @@ -18,7 +19,7 @@ export function activate(context: vscode.ExtensionContext) {
// The code you place here will be executed every time your command is executed

// Display a message box to the user
vscode.window.showInformationMessage('Validating YAML Pipeline');
//vscode.window.showInformationMessage('Validating YAML Pipeline');

let editor = vscode.window.activeTextEditor;

Expand All @@ -37,7 +38,8 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.showInformationMessage('Valid YAML Pipeline');
}
catch (error) {
vscode.window.showErrorMessage('Invalid YAML Pipeline - ' + error.response.body);
let options: MessageOptions = { modal: false};
vscode.window.showErrorMessage('Invalid YAML Pipeline - ' + error.response.body, options);

}
})();
Expand Down

0 comments on commit f60a9f3

Please sign in to comment.