-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
128 lines (128 loc) · 3.95 KB
/
package.json
File metadata and controls
128 lines (128 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "go-template-studio",
"displayName": "Go Template Studio",
"description": "A Visual Studio Code extension for working with Go templates, providing syntax highlighting, previewing, and context management.",
"version": "0.0.1",
"publisher": "johnmschoonover",
"repository": {
"type": "git",
"url": "https://github.com/johnmschoonover/vscode_go_templates.git"
},
"bugs": {
"url": "https://github.com/johnmschoonover/vscode_go_templates/issues"
},
"homepage": "https://github.com/johnmschoonover/vscode_go_templates#readme",
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:goTemplateStudio.showWelcome",
"onCommand:goTemplateStudio.preview",
"onCommand:goTemplateStudio.selectContext",
"workspaceContains:**/templates/*.tmpl",
"onView:goTemplateStudio.contextExplorer"
],
"main": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "go-templates",
"aliases": ["Go Templates", "go templates"],
"extensions": [".gotmpl", ".tmpl"],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "go-templates",
"scopeName": "source.go-template",
"path": "./syntaxes/go-template.tmLanguage.json"
}
],
"commands": [
{
"command": "goTemplateStudio.showWelcome",
"title": "Go Template Studio: Show Welcome",
"category": "Go Template Studio"
},
{
"command": "goTemplateStudio.preview",
"title": "Go Template Studio: Preview Template",
"category": "Go Template Studio",
"icon": "$(preview)"
},
{
"command": "goTemplateStudio.selectContext",
"title": "Go Template Studio: Select Context",
"category": "Go Template Studio"
},
{
"command": "goTemplateStudio.refreshContexts",
"title": "Go Template Studio: Refresh Contexts",
"category": "Go Template Studio"
},
{
"command": "goTemplateStudio.openContextFile",
"title": "Go Template Studio: Open Context File",
"category": "Go Template Studio"
}
],
"menus": {
"editor/title": [
{
"command": "goTemplateStudio.preview",
"group": "navigation@99",
"when": "resourceLangId == go-templates || resourceLangId == gotemplate || resourceExtname == .tmpl || resourceExtname == .tpl || resourceExtname == .gotmpl"
}
]
},
"views": {
"explorer": [
{
"id": "goTemplateStudio.contextExplorer",
"name": "Go Template Contexts"
}
]
},
"configuration": {
"title": "Go Template Studio",
"properties": {
"goTemplateStudio.goBinary": {
"type": "string",
"default": "go",
"description": "Path to the Go binary used for rendering templates."
},
"goTemplateStudio.rendererMode": {
"type": "string",
"enum": ["auto", "bundled", "system"],
"default": "auto",
"description": "Select which renderer to use: auto prefers bundled binaries, bundled requires them, system always uses the configured Go binary."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"typecheck": "tsc -p ./ --noEmit",
"lint": "eslint src --ext ts",
"test": "npm run test:templates",
"test:templates": "cd go-worker && go test ./...",
"update:grammar": "node ./scripts/update-go-template-grammar.mjs",
"verify:grammar": "node ./scripts/check-go-template-grammar.mjs"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@types/node": "^18.19.0",
"@types/vscode": "^1.85.0",
"eslint": "^8.56.0",
"typescript": "~5.3.3"
},
"dependencies": {}
}