Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ba8fc76

Browse files
chore: add vscode highlight extension (testing-library#228)
1 parent 9b86f9a commit ba8fc76

File tree

11 files changed

+183
-1
lines changed

11 files changed

+183
-1
lines changed

‎.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@typescript-eslint/quotes": "off",
5050
"@typescript-eslint/type-annotation-spacing": "error",
5151
"@typescript-eslint/no-explicit-any": "off",
52-
"arrow-body-style": "error",
52+
"arrow-body-style": "off",
5353
"brace-style": ["error", "1tbs"],
5454
"curly": "error",
5555
"eol-last": "error",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto

‎projects/vscode-atl-render/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.vsix
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// A launch configuration that launches the extension inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
]
15+
}
16+
]
17+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/**
2+
.vscode-test/**
3+
.gitignore
4+
vsc-extension-quickstart.md

‎projects/vscode-atl-render/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Change Log
2+
3+
All notable changes to the "vscode-testing-library-render" extension will be documented in this file.
4+
5+
## 0.0.3
6+
7+
- docs: add logo
8+
9+
## 0.0.2
10+
11+
- fix: highlight on next line
12+
13+
## 0.0.1
14+
15+
- feat: initial release

‎projects/vscode-atl-render/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# vscode-atl-render
2+
3+
This extension adds HTML highlighting to the render method of the Angular Testing Library.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
"blockComment": ["<!--", "-->"]
4+
},
5+
"brackets": [
6+
["<!--", "-->"],
7+
["<", ">"],
8+
["{", "}"],
9+
["(", ")"],
10+
["[", "]"]
11+
],
12+
"autoClosingPairs": [
13+
{ "open": "{", "close": "}" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "'", "close": "'" },
17+
{ "open": "\"", "close": "\"" },
18+
{ "open": "<!--", "close": "-->", "notIn": ["comment", "string"] },
19+
{ "open": "/**", "close": "*/", "notIn": ["string"] }
20+
],
21+
"surroundingPairs": [
22+
{ "open": "'", "close": "'" },
23+
{ "open": "\"", "close": "\"" },
24+
{ "open": "`", "close": "`" },
25+
{ "open": "{", "close": "}" },
26+
{ "open": "[", "close": "]" },
27+
{ "open": "(", "close": ")" },
28+
{ "open": "<", "close": ">" }
29+
]
30+
}
10.7 KB
Loading[フレーム]

‎projects/vscode-atl-render/package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "vscode-atl-render",
3+
"displayName": "Angular Testing Library Render Highlighting",
4+
"description": "HTML highlighting in ATL the render method",
5+
"version": "0.0.3",
6+
"icon": "other/hedgehog.png",
7+
"publisher": "timdeschryver",
8+
"license": "MIT",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/testing-library/angular-testing-library.git"
12+
},
13+
"homepage": "https://github.com/testing-library/angular-testing-library/blob/main/README.md",
14+
"engines": {
15+
"vscode": "^1.57.0"
16+
},
17+
"categories": [
18+
"Programming Languages"
19+
],
20+
"contributes": {
21+
"configuration": [
22+
{
23+
"id": "atl-render",
24+
"title": "Angular Testing Library Render",
25+
"properties": {
26+
"atl-render.format.enabled": {
27+
"type": "boolean",
28+
"description": "Enable/disable formatting of render template strings.",
29+
"default": true
30+
}
31+
}
32+
}
33+
],
34+
"grammars": [
35+
{
36+
"scopeName": "atl.render",
37+
"path": "./syntaxes/atl-render.json",
38+
"injectTo": [
39+
"source.ts"
40+
],
41+
"embeddedLanguages": {
42+
"text.html": "html"
43+
}
44+
}
45+
]
46+
}
47+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /