-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
223 lines (222 loc) · 6.86 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{
"name": "pascal-language-server",
"displayName": "Pascal Language Server",
"description": "Pascal Langauge Server for Free Pascal Compiler",
"publisher": "ryan-joseph",
"categories": [
"Programming Languages"
],
"license": "MIT",
"version": "0.0.5",
"repository": {
"type": "git",
"url": "https://github.com/genericptr/pascal-language-server"
},
"homepage": "https://github.com/genericptr/pascal-language-server",
"engines": {
"vscode": "^1.43.0"
},
"activationEvents": [
"onLanguage:pascal"
],
"main": "./out/extension",
"contributes": {
"languages": [
{
"id": "pascal",
"extensions": [
".pas",
".pp",
".lpr",
".inc"
]
}
],
"commands" : [
{
"command" : "invoke.codeCompletion",
"title" : "Complete the code at the cursor"
},
{
"command" : "invoke.formatCode",
"title" : "Complete the code at the cursor"
},
{
"command" : "invoke.invertAssignment",
"title" : "Invert the assignment statements in the selection"
},
{
"command" : "invoke.removeEmptyMethods",
"title" : "Remove empty methods from classes in this file"
}
],
"keybindings": [
{
"command": "invoke.codeCompletion",
"key": "ctrl+shift+c"
}
],
"configuration": {
"type": "object",
"title": "Pascal Language Server",
"properties": {
"pascalLanguageServer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"pascalLanguageServer.executable": {
"type": "string",
"default": "/usr/local/bin/pasls",
"description": "Path to the language server executable."
},
"pascalLanguageServer.initializationOptions.program": {
"type": "string",
"description": "Path to the main program file for resolving references (if not available the path of the current document will be used)"
},
"pascalLanguageServer.initializationOptions.symbolDatabase": {
"type": "string",
"description": "Path to SQLite3 database for symbols"
},
"pascalLanguageServer.initializationOptions.fpcOptions": {
"type": "array",
"default": [
"-Fu/path/to/units"
],
"markdownDescription": "Compiler switches to specify additional information (such as `-Fu`, `-Fi`, `-d`)"
},
"pascalLanguageServer.initializationOptions.overloadPolicy": {
"type": "number",
"scope": "application",
"default": 3,
"enum": [
1,
2,
3
],
"enumDescriptions": [
"Duplicate function names appear in the list",
"After the original definition ignore others",
"Add a suffix which denotes the overload count"
],
"description": "Policy which determines how overloaded document symbols are displayed"
},
"pascalLanguageServer.initializationOptions.maximumCompletions": {
"type": "number",
"scope": "application",
"default": 100,
"markdownDescription": "Maximum number of completion items to be returned. If the threshold is reached then `CompletionList.isIncomplete = true`"
},
"pascalLanguageServer.initializationOptions.insertCompletionsAsSnippets": {
"type": "boolean",
"scope": "application",
"default": true,
"description": "Procedure completions with parameters are inserted as snippets"
},
"pascalLanguageServer.initializationOptions.insertCompletionProcedureBrackets": {
"type": "boolean",
"default": false,
"description": "Procedure completions with parameters (non-snippet) insert empty brackets (and insert as snippet)"
},
"pascalLanguageServer.initializationOptions.includeWorkspaceFoldersAsUnitPaths": {
"type": "boolean",
"default": true,
"description": "Workspaces folders will be added to unit paths (i.e. -Fu)"
},
"pascalLanguageServer.initializationOptions.includeWorkspaceFoldersAsIncludePaths": {
"type": "boolean",
"scope": "application",
"default": true,
"description": "Workspaces folders will be added to include paths (i.e. -Fi)"
},
"pascalLanguageServer.initializationOptions.checkSyntax": {
"type": "boolean",
"scope": "application",
"default": false,
"description": "Syntax will be checked when file opens or saves"
},
"pascalLanguageServer.initializationOptions.checkInactiveRegions": {
"type": "boolean",
"scope": "application",
"default": true,
"description": "Mark inactive regions based on conditional compilation directives"
},
"pascalLanguageServer.initializationOptions.publishDiagnostics": {
"type": "boolean",
"scope": "application",
"default": false,
"description": "Syntax errors will be published as diagnostics"
},
"pascalLanguageServer.initializationOptions.workspaceSymbols": {
"type": "boolean",
"default": false,
"description": "Enable workspace symbols"
},
"pascalLanguageServer.initializationOptions.documentSymbols": {
"type": "boolean",
"scope": "application",
"default": true,
"description": "Enable document symbols"
},
"pascalLanguageServer.initializationOptions.minimalisticCompletions": {
"type": "boolean",
"scope": "application",
"default": false,
"description": "Completions contain a minimal amount of extra information"
},
"pascalLanguageServer.initializationOptions.showSyntaxErrors": {
"type": "boolean",
"scope": "application",
"default": true,
"markdownDescription": "Syntax errors as shown in the UI with ‘window/showMessage’"
},
"pascalLanguageServer.env.PP": {
"type": "string",
"markdownDescription": "Path to compiler (i.e. `/usr/bin/fpc`, `/usr/bin/ppc386`)"
},
"pascalLanguageServer.env.FPCDIR": {
"type": "string",
"default": "/usr/local/share/fpcsrc",
"markdownDescription": "Path to FPC sources such as `/usr/local/share/fpcsrc`"
},
"pascalLanguageServer.env.LAZARUSDIR": {
"type": "string",
"markdownDescription": "Path to Lazarus sources as `/usr/local/share/lazsrc`"
},
"pascalLanguageServer.env.FPCTARGET": {
"type": "string",
"markdownDescription": "Target platform (`windows`, `linux`, `darwin`)"
},
"pascalLanguageServer.env.FPCTARGETCPU": {
"type": "string",
"markdownDescription": "Target CPU such as `x86_64`"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"build": "vsce package"
},
"dependencies": {
"vscode-languageclient": "^6.1.3"
},
"devDependencies": {
"@types/vscode": "1.43.0",
"@types/mocha": "^5.2.7",
"vscode-test": "^1.3.0",
"mocha": "^6.2.2",
"@types/node": "^12.12.0",
"eslint": "^6.4.0",
"@typescript-eslint/parser": "^2.3.0",
"typescript": "^3.9.4"
}
}