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 "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
} }

View File

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

View File

@ -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);
} }

View File

@ -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));
});
}); });