Skip to content

Commit

Permalink
Merge pull request #43 from DigitalMolecules/development
Browse files Browse the repository at this point in the history
Prepared v0.1.6
  • Loading branch information
andreujuanc authored Mar 5, 2020
2 parents 4149ad8 + 99ef95b commit ffd9f04
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.1.6] (Preview)
- Open and Delete message not working when viewing from a Queue #41

## [0.1.5] (Preview)
- Delete a single message #37
- Send to bus does not allow queue selection #38
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Service Bus Explorer",
"description": "Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities.",
"icon": "resources/icon.png",
"version": "0.1.5",
"version": "0.1.6",
"publisher": "digital-molecules",
"repository": "https://github.com/DigitalMolecules/vscode-servicebus-explorer",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default function registerCommands(
} else {
window.showErrorMessage('enqueuedSequenceNumber is empty');
}
} else {
return Promise.reject();
}
}
}),
Expand Down
5 changes: 2 additions & 3 deletions src/messages/messageWebView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,14 @@ export class MessageWebView {
margin: 0px;
}
.hidden{
display:none;
}
</style>
</head>
<body>
<h1>Messages (${subscription})</h1>
<h1>Messages (${subscription ? subscription : queue})</h1>
<script >
const vscode = acquireVsCodeApi();
function showMessage(topic, subscription, queue, messageId, enqueuedSequenceNumber){
Expand Down Expand Up @@ -228,7 +227,7 @@ export class MessageWebView {
this.panel.webview.onDidReceiveMessage(
message => {
// Find message by id and sequence number
var msg = messages.find(x => x.messageId === message.messageId && x.enqueuedSequenceNumber && x.enqueuedSequenceNumber.toString() === message.enqueuedSequenceNumber);
var msg = messages.find(x => x.messageId === message.messageId && x.enqueuedSequenceNumber?.toString() === message.enqueuedSequenceNumber);

if (msg) {
switch (message.command) {
Expand Down

0 comments on commit ffd9f04

Please sign in to comment.