Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 83950be

Browse files
committed
1 parent 8674627 commit 83950be

File tree

5 files changed

+306
-154
lines changed

5 files changed

+306
-154
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"connor4312.esbuild-problem-matchers"
4+
],
5+
"unwantedRecommendations": []
6+
}

.vscode/launch.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,33 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
9-
{
10-
"name": "Run Extension",
11-
"type": "extensionHost",
12-
"request": "launch",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
],
16-
"outFiles": [
17-
"${workspaceFolder}/out/**/*.js"
18-
],
19-
"preLaunchTask": "${defaultBuildTask}"
20-
},
21-
{
22-
"name": "Run Extension Tests",
23-
"type": "extensionHost",
24-
"request": "launch",
25-
"runtimeExecutable": "${execPath}",
26-
"args": [
27-
"--extensionDevelopmentPath=${workspaceFolder}",
28-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
29-
],
30-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
31-
"preLaunchTask": "${defaultBuildTask}"
32-
}
33-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/out/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
19+
},
20+
{
21+
"name": "Run Extension Tests",
22+
"type": "extensionHost",
23+
"request": "launch",
24+
"runtimeExecutable": "${execPath}",
25+
"args": [
26+
"--extensionDevelopmentPath=${workspaceFolder}",
27+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
28+
],
29+
"outFiles": [
30+
"${workspaceFolder}/out/test/**/*.js"
31+
],
32+
"preLaunchTask": "test-watch"
33+
}
34+
]
3435
}

.vscode/tasks.json

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$esbuild-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
},
19+
{
20+
"label": "test-watch",
21+
"type": "npm",
22+
"script": "test-watch",
23+
"problemMatcher": "$tsc-watch",
24+
"isBackground": true,
25+
"presentation": {
26+
"reveal": "never"
27+
},
28+
"group": {
29+
"kind": "build",
30+
"isDefault": false
31+
}
32+
}
33+
]
2034
}

package.json

Lines changed: 115 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,116 @@
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.3.1",
7-
"publisher": "ruby-syntax-tree",
8-
"repository": {
9-
"type": "git",
10-
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree.git"
11-
},
12-
"license": "MIT",
13-
"bugs": {
14-
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree/issues"
15-
},
16-
"engines": {
17-
"vscode": "^1.68.0"
18-
},
19-
"activationEvents": [
20-
"onLanguage:ruby",
21-
"workspaceContains:Gemfile.lock",
22-
"onCommand:syntaxTree.start",
23-
"onCommand:syntaxTree.stop",
24-
"onCommand:syntaxTree.restart",
25-
"onCommand:syntaxTree.showOutputChannel",
26-
"onCommand:syntaxTree.visualize"
27-
],
28-
"main": "./out/extension",
29-
"contributes": {
30-
"commands": [
31-
{
32-
"command": "syntaxTree.start",
33-
"title": "Syntax Tree: Start"
34-
},
35-
{
36-
"command": "syntaxTree.stop",
37-
"title": "Syntax Tree: Stop"
38-
},
39-
{
40-
"command": "syntaxTree.restart",
41-
"title": "Syntax Tree: Restart"
42-
},
43-
{
44-
"command": "syntaxTree.showOutputChannel",
45-
"title": "Syntax Tree: Show Output Channel"
46-
},
47-
{
48-
"command": "syntaxTree.visualize",
49-
"title": "Syntax Tree: Visualize"
50-
}
51-
],
52-
"configuration": {
53-
"type": "object",
54-
"title": "Syntax Tree",
55-
"properties": {
56-
"syntaxTree.printWidth": {
57-
"default": 80,
58-
"markdownDescription": "The width to be used when formatting code.",
59-
"type": "number"
60-
},
61-
"syntaxTree.singleQuotes": {
62-
"default": false,
63-
"markdownDescription": "Uses single-quoted strings when possible.",
64-
"type": "boolean"
65-
},
66-
"syntaxTree.trailingComma": {
67-
"default": false,
68-
"markdownDescription": "Adds a trailing comma to multi-line array literals, hash literals, and method parameters.",
69-
"type": "boolean"
70-
},
71-
"syntaxTree.additionalPlugins": {
72-
"default": [],
73-
"markdownDescription": "Registers [extra behaviors](https://github.com/ruby-syntax-tree/syntax_tree#plugins) with the language server.",
74-
"items": {
75-
"type": "string"
76-
},
77-
"type": "array"
78-
}
79-
}
80-
},
81-
"colors": []
82-
},
83-
"scripts": {
84-
"compile": "tsc -p ./",
85-
"package": "vsce package --no-yarn --githubBranch main",
86-
"publish": "vsce publish --no-yarn --githubBranch main",
87-
"test": "node ./out/test/runTest.js",
88-
"vscode:prepublish": "yarn compile",
89-
"watch": "tsc --watch -p ./"
90-
},
91-
"dependencies": {
92-
"vscode-languageclient": "8.0.2"
93-
},
94-
"devDependencies": {
95-
"@types/glob": "^7.1.1",
96-
"@types/mocha": "^9.1.1",
97-
"@types/node": "^18.0.0",
98-
"@types/vscode": "^1.68.0",
99-
"@vscode/test-electron": "^1.6.2",
100-
"glob": "^8.0.3",
101-
"mocha": "^10.0.0",
102-
"typescript": "^4.7.4",
103-
"vsce": "^2.9.2"
104-
},
105-
"__metadata": {
106-
"id": "b46118f9-0f6f-4320-9e2e-75c96492b4cb",
107-
"publisherDisplayName": "ruby-syntax-tree",
108-
"publisherId": "63942dce-de09-44d8-b863-4a1dbd5508c6",
109-
"isPreReleaseVersion": false
110-
}
111-
}
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.3.1",
7+
"publisher": "ruby-syntax-tree",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree.git"
11+
},
12+
"license": "MIT",
13+
"bugs": {
14+
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree/issues"
15+
},
16+
"engines": {
17+
"vscode": "^1.68.0"
18+
},
19+
"activationEvents": [
20+
"onLanguage:ruby",
21+
"workspaceContains:Gemfile.lock",
22+
"onCommand:syntaxTree.start",
23+
"onCommand:syntaxTree.stop",
24+
"onCommand:syntaxTree.restart",
25+
"onCommand:syntaxTree.showOutputChannel",
26+
"onCommand:syntaxTree.visualize"
27+
],
28+
"main": "./out/extension",
29+
"contributes": {
30+
"commands": [
31+
{
32+
"command": "syntaxTree.start",
33+
"title": "Syntax Tree: Start"
34+
},
35+
{
36+
"command": "syntaxTree.stop",
37+
"title": "Syntax Tree: Stop"
38+
},
39+
{
40+
"command": "syntaxTree.restart",
41+
"title": "Syntax Tree: Restart"
42+
},
43+
{
44+
"command": "syntaxTree.showOutputChannel",
45+
"title": "Syntax Tree: Show Output Channel"
46+
},
47+
{
48+
"command": "syntaxTree.visualize",
49+
"title": "Syntax Tree: Visualize"
50+
}
51+
],
52+
"configuration": {
53+
"type": "object",
54+
"title": "Syntax Tree",
55+
"properties": {
56+
"syntaxTree.printWidth": {
57+
"default": 80,
58+
"markdownDescription": "The width to be used when formatting code.",
59+
"type": "number"
60+
},
61+
"syntaxTree.singleQuotes": {
62+
"default": false,
63+
"markdownDescription": "Uses single-quoted strings when possible.",
64+
"type": "boolean"
65+
},
66+
"syntaxTree.trailingComma": {
67+
"default": false,
68+
"markdownDescription": "Adds a trailing comma to multi-line array literals, hash literals, and method parameters.",
69+
"type": "boolean"
70+
},
71+
"syntaxTree.additionalPlugins": {
72+
"default": [],
73+
"markdownDescription": "Registers [extra behaviors](https://github.com/ruby-syntax-tree/syntax_tree#plugins) with the language server.",
74+
"items": {
75+
"type": "string"
76+
},
77+
"type": "array"
78+
}
79+
}
80+
},
81+
"colors": []
82+
},
83+
"scripts": {
84+
"clean": "rm -rf ./out",
85+
"compile": "yarn run esbuild-base --sourcemap",
86+
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
87+
"package": "vsce package --no-yarn --githubBranch main",
88+
"publish": "vsce publish --no-yarn --githubBranch main",
89+
"test": "node ./out/test/runTest.js",
90+
"test-compile": "tsc -p ./",
91+
"test-watch": "tsc --watch -p ./",
92+
"vscode:prepublish": "yarn run esbuild-base -- --minify",
93+
"watch": "yarn run esbuild-base --sourcemap --watch"
94+
},
95+
"dependencies": {
96+
"vscode-languageclient": "8.0.2"
97+
},
98+
"devDependencies": {
99+
"@types/glob": "^7.1.1",
100+
"@types/mocha": "^9.1.1",
101+
"@types/node": "^18.0.0",
102+
"@types/vscode": "^1.68.0",
103+
"@vscode/test-electron": "^1.6.2",
104+
"esbuild": "^0.14.49",
105+
"glob": "^8.0.3",
106+
"mocha": "^10.0.0",
107+
"typescript": "^4.7.4",
108+
"vsce": "^2.9.2"
109+
},
110+
"__metadata": {
111+
"id": "b46118f9-0f6f-4320-9e2e-75c96492b4cb",
112+
"publisherDisplayName": "ruby-syntax-tree",
113+
"publisherId": "63942dce-de09-44d8-b863-4a1dbd5508c6",
114+
"isPreReleaseVersion": false
115+
}
116+
}

0 commit comments

Comments
 (0)