Skip to content

Commit 0f7db9e

Browse files
committed
Add CLI test script
1 parent e040427 commit 0f7db9e

File tree

2 files changed

+117
-109
lines changed

2 files changed

+117
-109
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.token
2+
.vscode-test
23
node_modules
34
*.vsix
45
out

package.json

Lines changed: 116 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,117 @@
11
{
2-
"name": "vscode-syntax-tree",
3-
"displayName": "Syntax Tree",
4-
"description": "VSCode support for the syntax_tree gem",
5-
"icon": "doc/logo.png",
6-
"version": "0.2.1",
7-
"packageManager": "[email protected]",
8-
"publisher": "ruby-syntax-tree",
9-
"repository": {
10-
"type": "git",
11-
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree.git"
12-
},
13-
"license": "MIT",
14-
"bugs": {
15-
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree/issues"
16-
},
17-
"engines": {
18-
"vscode": "^1.66.0"
19-
},
20-
"activationEvents": [
21-
"onLanguage:ruby",
22-
"workspaceContains:Gemfile.lock",
23-
"onCommand:syntaxTree.start",
24-
"onCommand:syntaxTree.stop",
25-
"onCommand:syntaxTree.restart",
26-
"onCommand:syntaxTree.showOutputChannel",
27-
"onCommand:syntaxTree.visualize"
28-
],
29-
"main": "./out/extension",
30-
"contributes": {
31-
"commands": [
32-
{
33-
"command": "syntaxTree.start",
34-
"title": "Syntax Tree: Start"
35-
},
36-
{
37-
"command": "syntaxTree.stop",
38-
"title": "Syntax Tree: Stop"
39-
},
40-
{
41-
"command": "syntaxTree.restart",
42-
"title": "Syntax Tree: Restart"
43-
},
44-
{
45-
"command": "syntaxTree.showOutputChannel",
46-
"title": "Syntax Tree: Show Output Channel"
47-
},
48-
{
49-
"command": "syntaxTree.visualize",
50-
"title": "Syntax Tree: Visualize"
51-
}
52-
],
53-
"configuration": {
54-
"type": "object",
55-
"title": "Syntax Tree",
56-
"properties": {
57-
"syntaxTree.singleQuotes": {
58-
"default": false,
59-
"markdownDescription": "Uses single-quoted strings when possible.",
60-
"type": "boolean"
61-
},
62-
"syntaxTree.trailingComma": {
63-
"default": false,
64-
"markdownDescription": "Adds a trailing comma to multi-line array literals, hash literals, and method parameters.",
65-
"type": "boolean"
66-
},
67-
"syntaxTree.additionalPlugins": {
68-
"default": [],
69-
"markdownDescription": "Registers [extra behaviors](https://github.com/ruby-syntax-tree/syntax_tree#plugins) with the language server.",
70-
"items": {
71-
"type": "string"
72-
},
73-
"type": "array"
74-
}
75-
}
76-
},
77-
"colors": [
78-
{
79-
"id": "syntaxTree.inlayHints",
80-
"description": "Text color for the inserted inlay hints",
81-
"defaults": {
82-
"dark": "#707070",
83-
"light": "#999999",
84-
"highContrast": "foreground"
85-
}
86-
}
87-
]
88-
},
89-
"scripts": {
90-
"compile": "tsc -p ./",
91-
"package": "vsce package --yarn --githubBranch main",
92-
"publish": "vsce publish --yarn --githubBranch main",
93-
"vscode:prepublish": "yarn compile",
94-
"watch": "tsc --watch -p ./"
95-
},
96-
"dependencies": {
97-
"vscode-languageclient": "^8.0.1"
98-
},
99-
"devDependencies": {
100-
"@types/glob": "^7.1.1",
101-
"@types/mocha": "^9.1.1",
102-
"@types/node": "^18.0.0",
103-
"@types/vscode": "^1.68.0",
104-
"@vscode/test-electron": "^1.6.1",
105-
"glob": "^7.1.4",
106-
"mocha": "^9.1.1",
107-
"typescript": "^4.7.4",
108-
"vsce": "^2.9.2"
109-
}
110-
}
2+
"name": "vscode-syntax-tree",
3+
"displayName": "Syntax Tree",
4+
"description": "VSCode support for the syntax_tree gem",
5+
"icon": "doc/logo.png",
6+
"version": "0.2.1",
7+
"packageManager": "[email protected]",
8+
"publisher": "ruby-syntax-tree",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree.git"
12+
},
13+
"license": "MIT",
14+
"bugs": {
15+
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree/issues"
16+
},
17+
"engines": {
18+
"vscode": "^1.66.0"
19+
},
20+
"activationEvents": [
21+
"onLanguage:ruby",
22+
"workspaceContains:Gemfile.lock",
23+
"onCommand:syntaxTree.start",
24+
"onCommand:syntaxTree.stop",
25+
"onCommand:syntaxTree.restart",
26+
"onCommand:syntaxTree.showOutputChannel",
27+
"onCommand:syntaxTree.visualize"
28+
],
29+
"main": "./out/extension",
30+
"contributes": {
31+
"commands": [
32+
{
33+
"command": "syntaxTree.start",
34+
"title": "Syntax Tree: Start"
35+
},
36+
{
37+
"command": "syntaxTree.stop",
38+
"title": "Syntax Tree: Stop"
39+
},
40+
{
41+
"command": "syntaxTree.restart",
42+
"title": "Syntax Tree: Restart"
43+
},
44+
{
45+
"command": "syntaxTree.showOutputChannel",
46+
"title": "Syntax Tree: Show Output Channel"
47+
},
48+
{
49+
"command": "syntaxTree.visualize",
50+
"title": "Syntax Tree: Visualize"
51+
}
52+
],
53+
"configuration": {
54+
"type": "object",
55+
"title": "Syntax Tree",
56+
"properties": {
57+
"syntaxTree.singleQuotes": {
58+
"default": false,
59+
"markdownDescription": "Uses single-quoted strings when possible.",
60+
"type": "boolean"
61+
},
62+
"syntaxTree.trailingComma": {
63+
"default": false,
64+
"markdownDescription": "Adds a trailing comma to multi-line array literals, hash literals, and method parameters.",
65+
"type": "boolean"
66+
},
67+
"syntaxTree.additionalPlugins": {
68+
"default": [],
69+
"markdownDescription": "Registers [extra behaviors](https://github.com/ruby-syntax-tree/syntax_tree#plugins) with the language server.",
70+
"items": {
71+
"type": "string"
72+
},
73+
"type": "array"
74+
}
75+
}
76+
},
77+
"colors": [
78+
{
79+
"id": "syntaxTree.inlayHints",
80+
"description": "Text color for the inserted inlay hints",
81+
"defaults": {
82+
"dark": "#707070",
83+
"light": "#999999",
84+
"highContrast": "foreground"
85+
}
86+
}
87+
]
88+
},
89+
"scripts": {
90+
"compile": "tsc -p ./",
91+
"package": "vsce package --yarn --githubBranch main",
92+
"publish": "vsce publish --yarn --githubBranch main",
93+
"test": "node ./out/test/runTest.js",
94+
"vscode:prepublish": "yarn compile",
95+
"watch": "tsc --watch -p ./"
96+
},
97+
"dependencies": {
98+
"vscode-languageclient": "^8.0.1"
99+
},
100+
"devDependencies": {
101+
"@types/glob": "^7.1.1",
102+
"@types/mocha": "^9.1.1",
103+
"@types/node": "^18.0.0",
104+
"@types/vscode": "^1.68.0",
105+
"@vscode/test-electron": "^1.6.1",
106+
"glob": "^7.1.4",
107+
"mocha": "^9.1.1",
108+
"typescript": "^4.7.4",
109+
"vsce": "^2.9.2"
110+
},
111+
"__metadata": {
112+
"id": "b46118f9-0f6f-4320-9e2e-75c96492b4cb",
113+
"publisherDisplayName": "ruby-syntax-tree",
114+
"publisherId": "63942dce-de09-44d8-b863-4a1dbd5508c6",
115+
"isPreReleaseVersion": false
116+
}
117+
}

0 commit comments

Comments
 (0)