diff --git a/.vscode/settings.json b/.vscode/settings.json index 30bf8c2..7ebedd4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" -} \ No newline at end of file + "typescript.tsc.autoDetect": "off", + "editor.detectIndentation": false, + "prettier.tabWidth": 2, + "prettier.singleQuote": true +} diff --git a/.vscodeignore b/.vscodeignore index f6af244..ed3f9d3 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -7,5 +7,4 @@ vsc-extension-quickstart.md **/tsconfig.json **/tslint.json **/*.map -**/*.ts -.gitea/ \ No newline at end of file +**/*.ts \ No newline at end of file diff --git a/src/template.html.ts b/src/template.html.ts index ef3eb57..b4c743a 100644 --- a/src/template.html.ts +++ b/src/template.html.ts @@ -1,38 +1,42 @@ -import { Issue } from "./issue"; +import { Issue } from './issue'; export function showIssueHTML(issue: Issue) { - - return ` + return `

{{label}}

- - - - - - - - - - - - - -
- Title - - {{label}} -
- State - - {{state}} -
- Assignee - - {{assignee}} -
-

- {{description}} -

- -`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label); -} \ No newline at end of file + + + + + + + + + + + + + +
+ Title + + {{label}} +
+ State + + {{state}} +
+ Assignee + + {{assignee}} +
+

+ {{description}} +

+ + ` + .replace('{{label}}', issue.label) + .replace('{{state}}', issue.issueState) + .replace('{{assignee}}', issue.assignee) + .replace('{{description}}', issue.body) + .replace('{{label}}', issue.label); +} diff --git a/src/test/extension.test.ts b/src/test/extension.test.ts index a7a297f..1bd289d 100644 --- a/src/test/extension.test.ts +++ b/src/test/extension.test.ts @@ -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)); - }); }); \ No newline at end of file