A bit of cleanup
This commit is contained in:
parent
420303bffa
commit
011232bc75
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -7,5 +7,8 @@
|
|||||||
"out": true // set this to false to include "out" folder in search results
|
"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
|
// 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
|
||||||
}
|
}
|
@ -8,4 +8,3 @@ vsc-extension-quickstart.md
|
|||||||
**/tslint.json
|
**/tslint.json
|
||||||
**/*.map
|
**/*.map
|
||||||
**/*.ts
|
**/*.ts
|
||||||
.gitea/
|
|
@ -1,7 +1,6 @@
|
|||||||
import { Issue } from "./issue";
|
import { Issue } from './issue';
|
||||||
|
|
||||||
export function showIssueHTML(issue: Issue) {
|
export function showIssueHTML(issue: Issue) {
|
||||||
|
|
||||||
return `<body>
|
return `<body>
|
||||||
<h1>{{label}}</h1>
|
<h1>{{label}}</h1>
|
||||||
<table>
|
<table>
|
||||||
@ -34,5 +33,10 @@ export function showIssueHTML(issue: Issue) {
|
|||||||
{{description}}
|
{{description}}
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label);
|
`
|
||||||
|
.replace('{{label}}', issue.label)
|
||||||
|
.replace('{{state}}', issue.issueState)
|
||||||
|
.replace('{{assignee}}', issue.assignee)
|
||||||
|
.replace('{{description}}', issue.body)
|
||||||
|
.replace('{{label}}', issue.label);
|
||||||
}
|
}
|
@ -4,7 +4,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// The module 'assert' provides assertion methods from node
|
// 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
|
// You can import and use all API from the 'vscode' module
|
||||||
// as well as import your extension to test it
|
// 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
|
// Defines a Mocha test suite to group tests of similar kind together
|
||||||
suite("Extension Tests", function () {
|
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));
|
|
||||||
});
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user