-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 3.05 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 3.05 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
{
"name": "rpg-end-code-blocks",
"displayName": "RPG End Code Blocks",
"description": "Auto add end code blocks on enter",
"icon": "images/begend.png",
"version": "1.0.8",
"publisher": "RickyThompson",
"repository": "https://github.com/thomprl/rpg-end-code-blocks",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:rpgle",
"onLanguage:sqlrpgle"
],
"main": "./out/extension.js",
"contributes": {
"keybindings": [
{
"command": "rpg-end-code-blocks.enter",
"key": "enter",
"title": "End Code Blocks",
"when": "editorTextFocus && (editorLangId == 'rpgle' || editorLangId == 'sqlrpgle') && vim.mode != 'Normal' && vim.mode != 'SearchInProgressMode' && vim.mode != 'CommandlineInProgress'"
}
],
"configuration":{
"title" : "RPG End Code Blocks",
"properties": {
"rpg-end-code-blocks.openings": {
"type": "array",
"description": "List of opening patterns and corresponding closing tokens. The `open` value is a RegExp string, `close` is the token to insert (without semicolon).",
"default": [
{ "open": "BEGSR\\b", "close": "EndSr" },
{ "open": "DCL-DS\\b", "close": "End-Ds" },
{ "open": "DCL-ENUM\\b", "close": "End-Enum" },
{ "open": "DCL-PR\\b", "close": "End-Pr" },
{ "open": "DCL-PI\\b", "close": "End-Pi" },
{ "open": "DCL-PROC\\b", "close": "End-Proc" },
{ "open": "DOW\\b", "close": "EndDo" },
{ "open": "DOU\\b", "close": "EndDo" },
{ "open": "FOR\\b", "close": "EndFor" },
{ "open": "FOR-EACH\\b", "close": "EndFor" },
{ "open": "(?<!ELSE)IF\\b", "close": "EndIf" },
{ "open": "MONITOR\\s*;", "close": "EndMon" },
{ "open": "SELECT\\s*;", "close": "EndSl" }
],
"items": {
"type": "object",
"properties": {
"open": { "type": "string", "description": "RegExp (as a string) to match the opening statement (capitalized)" },
"close": { "type": "string", "description": "Token to insert as the closing statement (no trailing semicolon)" }
},
"required": ["open", "close"],
"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": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.87.0",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"@vscode/test-electron": "^2.3.9"
},
"__metadata": {
"id": "2783423b-c7d9-4e98-bda3-ee04da833a14",
"publisherId": "624c3dd5-b65b-41f3-b1f0-d67a4b69abb4",
"publisherDisplayName": "Ricky Thompson",
"targetPlatform": "undefined",
"isApplicationScoped": false,
"updated": true,
"isPreReleaseVersion": false,
"hasPreReleaseVersion": false,
"installedTimestamp": 1714441610539,
"pinned": false,
"preRelease": false,
"source": "gallery"
}
}