-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 4 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
131
132
133
134
135
136
137
138
139
140
{
"name": "flamework-vscode",
"publisher": "flamework",
"displayName": "Flamework",
"description": "A language service plugin that enhances the editing experience in Flamework.",
"version": "0.1.2",
"icon": "icon.png",
"engines": {
"vscode": "^1.52.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://github.com/rbxts-flamework/vscode"
},
"main": "./out/extension.js",
"activationEvents": [
"*"
],
"contributes": {
"typescriptServerPlugins": [
{
"name": "flamework-lsp",
"enableForWorkspaceTypeScriptVersions": true
}
],
"configuration": {
"title": "Flamework",
"properties": {
"flamework.casing": {
"type": "string",
"default": "camelCase",
"enum": [
"camelCase",
"PascalCase",
"snake_case"
],
"enumDescriptions": [
"Uses camelCase for fields.",
"Uses PascalCase for fields.",
"Uses snake_case for fields."
],
"description": "Determines the casing to use when Flamework autocompletes constructor dependencies."
},
"flamework.accessibility": {
"type": "string",
"default": "private-readonly",
"enum": [
"public",
"private",
"protected",
"public-readonly",
"private-readonly",
"protected-readonly"
],
"enumDescriptions": [
"Declares constructor dependencies as public.",
"Declares constructor dependencies as private.",
"Declares constructor dependencies as protected.",
"Declares constructor dependencies as public and readonly.",
"Declares constructor dependencies as private and readonly.",
"Declares constructor dependencies as protected and readonly."
],
"description": "Determines what accessibility autocompleted constructor dependencies have."
},
"flamework.constructorOrder": {
"type": "string",
"default": "preMethods",
"enum": [
"top",
"preFields",
"preMethods"
],
"enumDescriptions": [
"Places the constructor at the top of the class.",
"Places the constructor above the first property.",
"Places the constructor above the first method."
],
"description": "Determines where autocompleted constructors will be placed, if there is no constructor."
},
"flamework.constructorPadding": {
"type": "string",
"default": "both",
"enum": [
"before",
"after",
"both"
],
"enumDescriptions": [
"Adds a new line above autocompleted constructors.",
"Adds a new line below autocompleted constructors.",
"Adds a new line above and below autocompleted constructors."
],
"description": "Determines the new line padding for autocompleted constructors, if there is no constructor."
},
"flamework.injectableIdentifiers": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Decorators which allow classes to autofill constructors."
},
"flamework.smarterIntellisense": {
"type": "boolean",
"default": false,
"description": "Enables smarter intellisense by only showing related classes in intellisense in relevant contexts."
},
"flamework.alwaysUsePropertyDI": {
"type": "boolean",
"default": false,
"deprecationMessage": "You should avoid use of the Dependency macro, especially where DI is available.",
"description": "Determines whether Flamework classes should use constructor DI or property DI."
}
}
}
},
"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/node": "^12.20.1",
"@types/vscode": "^1.52.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"eslint": "^7.15.0",
"typescript": "^4.6.3",
"vscode-test": "^1.4.1"
},
"dependencies": {
"flamework-lsp": "^0.1.2"
}
}