-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
130 lines (130 loc) · 4.28 KB
/
package.json
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
129
130
{
"name": "custom-postfix-completion",
"displayName": "Custom Postfix Completion",
"description": "A extension to enable postfix completion for any language",
"version": "1.0.6",
"publisher": "JoeyWang",
"repository": {
"type": "git",
"url": "https://github.com/JoeyLearnsToCode/vscode-custom-postfix-completion"
},
"engines": {
"vscode": "^1.85.x"
},
"icon": "images/ICON_128.png",
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "custom-postfix-completion.apply-template",
"title": "Custom Postfix Completion: apply template"
}
],
"configuration": {
"type": "object",
"title": "Custom Postfix Completion",
"properties": {
"custom-postfix-completion": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Please edit in the settings.json file",
"default": {
"languageTemplates": {}
},
"properties": {
"languageTemplates": {
"type": "object",
"description": "Language specific templates",
"patternProperties": {
"^\\w+$": {
"description": "LanguageId from https://code.visualstudio.com/docs/languages/identifiers",
"type": "object",
"default": {
"templates": [
{
"triggerWord": "print",
"description": "Just print",
"body": [
"print(${target})"
]
}
]
},
"properties": {
"templates": {
"type": "array",
"description": "Templates for this language",
"items": {
"type": "object",
"properties": {
"triggerWord": {
"type": "string",
"description": "The word that triggers the template"
},
"description": {
"type": "string",
"description": "A description of what the template does"
},
"body": {
"type": "array",
"items": {
"type": "string"
},
"description": "The body of the template, each element will be a new line"
},
"targetRegExp": {
"type": "string",
"default": "\\w+",
"description": "Regular expression to match target for the template (what this template will apply on), default: \\w+"
}
},
"required": [
"triggerWord",
"description",
"body"
]
}
}
},
"additionalProperties": false
}
}
},
"debugMode": {
"type": "boolean",
"default": false,
"description": "Enable debug mode for more console logs"
}
},
"additionalProperties": false
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "ts-node"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.85.x",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}