A bit of cleanup

This commit is contained in:
ljoonal 2019-07-04 15:45:53 +03:00
parent 420303bffa
commit 011232bc75
No known key found for this signature in database
GPG Key ID: C74D75DE349ACD93
4 changed files with 46 additions and 45 deletions

View File

@ -7,5 +7,8 @@
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
"editor.detectIndentation": false,
"prettier.tabWidth": 2,
"prettier.singleQuote": true
}

View File

@ -8,4 +8,3 @@ vsc-extension-quickstart.md
**/tslint.json
**/*.map
**/*.ts
.gitea/

View File

@ -1,38 +1,42 @@
import { Issue } from "./issue";
import { Issue } from './issue';
export function showIssueHTML(issue: Issue) {
return `<body>
return `<body>
<h1>{{label}}</h1>
<table>
<tr>
<td>
Title
</td>
<td >
{{label}}
</td>
</tr>
<tr>
<td>
State
</td>
<td>
{{state}}
</td>
</tr>
<tr >
<td>
Assignee
</td>
<td>
{{assignee}}
</td>
</tr>
</table>
<p style="font-size: 20pt">
{{description}}
</p>
</body>
`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label);
<table>
<tr>
<td>
Title
</td>
<td >
{{label}}
</td>
</tr>
<tr>
<td>
State
</td>
<td>
{{state}}
</td>
</tr>
<tr >
<td>
Assignee
</td>
<td>
{{assignee}}
</td>
</tr>
</table>
<p style="font-size: 20pt">
{{description}}
</p>
</body>
`
.replace('{{label}}', issue.label)
.replace('{{state}}', issue.issueState)
.replace('{{assignee}}', issue.assignee)
.replace('{{description}}', issue.body)
.replace('{{label}}', issue.label);
}

View File

@ -4,7 +4,7 @@
//
// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
//import * as assert from 'assert';
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
@ -14,9 +14,4 @@ import * as assert from 'assert';
// Defines a Mocha test suite to group tests of similar kind together
suite("Extension Tests", function () {
// Defines a Mocha unit test
test("Something 1", function() {
assert.equal(-1, [1, 2, 3].indexOf(5));
assert.equal(-1, [1, 2, 3].indexOf(0));
});
});