-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·128 lines (128 loc) · 4.9 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
{
"name": "i18n-codelens",
"displayName": "i18n CodeLens",
"description": "i18n CodeLens makes it easy to find missing language resources, provides various Code Actions, Hover Information, and tips for you to add or edit the language resources.",
"version": "1.0.6",
"publisher": "mustafa-kuru",
"author": {
"email": "mustafakuru042@gmail.com",
"name": "Mustafa Kuru"
},
"private": true,
"icon": "images/logo.png",
"engines": {
"vscode": "^1.26.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/hepter/i18n-codelens"
},
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:json"
],
"main": "./out/extension",
"contributes": {
"views": {
"explorer": [
{
"id": "i18nResourceDefinitions",
"name": "i18n Resource Definitions",
"when": "config.i18n-codelens.resourceTreeViewVisible && resourceLangId in i18TreeView.supportedLanguages"
}
]
},
"commands": [
{
"title": "Enable CodeLens",
"command": "i18n-codelens.enableCodeLensAction",
"category": "i18n CodeLens"
},
{
"title": "Disable Codelens",
"command": "i18n-codelens.disableCodeLensAction",
"category": "i18n CodeLens"
},
{
"title": "Reset cache and reload",
"command": "i18n-codelens.resetAndReloadExtensionAction",
"category": "i18n CodeLens"
}
],
"configuration": {
"properties": {
"i18n-codelens.codeLens": {
"type": "boolean",
"default": true,
"description": "Enable or disable the CodeLens for missing resource code."
},
"i18n-codelens.resourceAutoSave": {
"type": "boolean",
"default": true,
"description": "Enable auto save for resource file(s) that saves files after inserted or updated resource data."
},
"i18n-codelens.underlineCodeDecorator": {
"type": "boolean",
"default": true,
"description": "Enable or disable the underline decorator for missing resource code(s)."
},
"i18n-codelens.autoFocusAfterModified": {
"type": "boolean",
"default": false,
"description": "Enable auto focus document after inserted or updated target resource file(s)."
},
"i18n-codelens.revealResourceInTreeView": {
"type": "boolean",
"default": false,
"description": "Enable or disable the automatic reveal resource item in the Resource Tree View when selected resource file on the editor."
},
"i18n-codelens.resourceTreeViewVisible": {
"type": "boolean",
"default": true,
"description": "Enable or disable the Resource Tree View"
},
"i18n-codelens.resourceFilesGlobPattern": {
"type": "string",
"description": "Language file glob patterns. (Language resource files must be key value object files.)",
"editPresentation": "singlelineText",
"default": "**/locales/**/*.json"
},
"i18n-codelens.resourceCodeDetectionRegex": {
"type": "string",
"description": "Regex to detect hover or codeLenses for resource key. Example default matches: t('key') or T('key')",
"editPresentation": "singlelineText",
"default": "(?<=\\W[tT]\\(['\"])(?<key>[a-zA-Z0-9 .-]+?)(?=['\"]\\))"
}
}
}
},
"scripts": {
"package": "vsce package",
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/lodash": "^4.14.180",
"@types/minimatch": "^3.0.5",
"@types/node": "^12.12.0",
"@types/vscode": "^1.26.0",
"@typescript-eslint/eslint-plugin": "^4.16.0",
"@typescript-eslint/parser": "^4.16.0",
"eslint": "^7.21.0",
"typescript": "^4.4.3",
"vsce": "^2.5.1"
},
"dependencies": {
"fastest-levenshtein": "^1.0.12",
"lodash": "^4.17.21",
"minimatch": "^5.0.1"
}
}