-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathcommands.ts
327 lines (287 loc) · 9.65 KB
/
commands.ts
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
'use strict';
/**
* Commonly used commands
*/
export namespace Commands {
/**
* Open Browser
*/
export const OPEN_BROWSER = 'vscode.open';
/**
* Open Output view
*/
export const OPEN_OUTPUT = 'java.open.output';
/**
* Show Java references
*/
export const SHOW_JAVA_REFERENCES = 'java.show.references';
/**
* Show Java implementations
*/
export const SHOW_JAVA_IMPLEMENTATIONS = 'java.show.implementations';
/**
* Show editor references
*/
export const SHOW_REFERENCES = 'editor.action.showReferences';
/**
* Go to editor location
*/
export const GOTO_LOCATION = 'editor.action.goToLocations';
/**
* Render markdown string to html string
*/
export const MARKDOWN_API_RENDER = 'markdown.api.render';
/**
* Reload project
*/
export const CONFIGURATION_UPDATE = 'java.projectConfiguration.update';
/**
* Ignore "Incomplete Classpath" messages
*/
export const IGNORE_INCOMPLETE_CLASSPATH = 'java.ignoreIncompleteClasspath';
/**
* Open help for "Incomplete Classpath" message
*/
export const IGNORE_INCOMPLETE_CLASSPATH_HELP = 'java.ignoreIncompleteClasspath.help';
/**
* Reload VS Code window
*/
export const RELOAD_WINDOW = 'workbench.action.reloadWindow';
/**
* Set project configuration update mode
*/
export const PROJECT_CONFIGURATION_STATUS = 'java.projectConfiguration.status';
/**
* Set null analysis mode
*/
export const NULL_ANALYSIS_SET_MODE = 'java.compile.nullAnalysis.setMode';
/**
* Apply Workspace Edit
*/
export const APPLY_WORKSPACE_EDIT = 'java.apply.workspaceEdit';
/**
* Execute Workspace Command
*/
export const EXECUTE_WORKSPACE_COMMAND = 'java.execute.workspaceCommand';
/**
* Execute Workspace build (compilation)
*/
export const COMPILE_WORKSPACE = 'java.workspace.compile';
/**
* Execute build for projects
*/
export const BUILD_PROJECT = 'java.project.build';
/**
* Open Java Language Server Log file
*/
export const OPEN_SERVER_LOG = 'java.open.serverLog';
/**
* Open Java Language Service Output Log file
*/
export const OPEN_SERVER_STDOUT_LOG = 'java.open.serverStdoutLog';
/**
* Open Java Language Server Error Log file
*/
export const OPEN_SERVER_STDERR_LOG = 'java.open.serverStderrLog';
/**
* Open Java client Log file
*/
export const OPEN_CLIENT_LOG = 'java.open.clientLog';
/**
* Open Java log files side by side
*/
export const OPEN_LOGS = 'java.open.logs';
/**
* Open Java formatter settings
*/
export const OPEN_FORMATTER = 'java.open.formatter.settings';
/**
* Open a file given the URI
*/
export const OPEN_FILE = 'java.open.file';
/**
* Clean the Java language server workspace
*/
export const CLEAN_WORKSPACE = 'java.clean.workspace';
/**
* Update the source attachment for the selected class file
* client-side & server-side commands
*/
export const UPDATE_SOURCE_ATTACHMENT_CMD = 'java.project.updateSourceAttachment.command';
export const UPDATE_SOURCE_ATTACHMENT = 'java.project.updateSourceAttachment';
/**
* Resolve the source attachment information for the selected class file
*/
export const RESOLVE_SOURCE_ATTACHMENT = 'java.project.resolveSourceAttachment';
/**
* Mark the folder as the source root of the closest project.
* client-side & server-side commands
*/
export const ADD_TO_SOURCEPATH_CMD = 'java.project.addToSourcePath.command';
export const ADD_TO_SOURCEPATH = 'java.project.addToSourcePath';
/**
* Unmark the folder as the source root of the project.
* client-side & server-side commands
*/
export const REMOVE_FROM_SOURCEPATH_CMD = 'java.project.removeFromSourcePath.command';
export const REMOVE_FROM_SOURCEPATH = 'java.project.removeFromSourcePath';
/**
* List all recognized source roots in the workspace.
* client-side & server-side commands
*/
export const LIST_SOURCEPATHS_CMD = 'java.project.listSourcePaths.command';
export const LIST_SOURCEPATHS = 'java.project.listSourcePaths';
/**
* Import new projects
* client-side & server-side commands
*/
export const IMPORT_PROJECTS_CMD = 'java.project.import.command';
export const IMPORT_PROJECTS = 'java.project.import';
/**
* Override or implements the methods from the supertypes.
*/
export const OVERRIDE_METHODS_PROMPT = 'java.action.overrideMethodsPrompt';
/**
* Generate hashCode() and equals().
*/
export const HASHCODE_EQUALS_PROMPT = 'java.action.hashCodeEqualsPrompt';
/**
* Open settings.json
*/
export const OPEN_JSON_SETTINGS = 'workbench.action.openSettingsJson';
/**
* Organize imports.
*/
export const ORGANIZE_IMPORTS = "java.action.organizeImports";
/**
* Organize imports silently.
*/
export const ORGANIZE_IMPORTS_SILENTLY = "java.edit.organizeImports";
/**
* Handle a paste event.
*/
export const HANDLE_PASTE_EVENT = "java.edit.handlePasteEvent";
/**
* Custom paste action (triggers auto-import)
*/
export const CLIPBOARD_ONPASTE = 'java.action.clipboardPasteAction';
/**
* Choose type to import.
*/
export const CHOOSE_IMPORTS = "java.action.organizeImports.chooseImports";
/**
* Generate toString().
*/
export const GENERATE_TOSTRING_PROMPT = 'java.action.generateToStringPrompt';
/**
* Generate Getters and Setters.
*/
export const GENERATE_ACCESSORS_PROMPT = 'java.action.generateAccessorsPrompt';
/**
* Generate Constructors.
*/
export const GENERATE_CONSTRUCTORS_PROMPT = 'java.action.generateConstructorsPrompt';
/**
* Generate Delegate Methods.
*/
export const GENERATE_DELEGATE_METHODS_PROMPT = 'java.action.generateDelegateMethodsPrompt';
/**
* Apply Refactoring Command.
*/
export const APPLY_REFACTORING_COMMAND = 'java.action.applyRefactoringCommand';
/**
* Rename Command.
*/
export const RENAME_COMMAND = 'java.action.rename';
/**
* Rename references Command.
*/
export const RENAME_REFERENCES_COMMAND = 'java.action.renameReferences';
/**
* Navigate To Super Method Command.
*/
export const NAVIGATE_TO_SUPER_IMPLEMENTATION_COMMAND = 'java.action.navigateToSuperImplementation';
/**
* Open Type Hierarchy of given Selection.
*/
export const SHOW_TYPE_HIERARCHY = 'java.action.showTypeHierarchy';
/**
* Show SuperType Hierarchy of given Selection.
*/
export const SHOW_SUPERTYPE_HIERARCHY = 'java.action.showSupertypeHierarchy';
/**
* Show SubType Hierarchy of given Selection.
*/
export const SHOW_SUBTYPE_HIERARCHY = 'java.action.showSubtypeHierarchy';
/**
* Show Type Hierarchy of given Selection.
*/
export const SHOW_CLASS_HIERARCHY = 'java.action.showClassHierarchy';
/**
* Change the base type of Type Hierarchy.
*/
export const CHANGE_BASE_TYPE = 'java.action.changeBaseType';
/**
* Open the given TypeHierarchy Item.
*/
export const OPEN_TYPE_HIERARCHY = 'java.navigate.openTypeHierarchy';
/**
* Resolve the given TypeHierarchy Item.
*/
export const RESOLVE_TYPE_HIERARCHY = 'java.navigate.resolveTypeHierarchy';
/**
* Show server task status
*/
export const SHOW_SERVER_TASK_STATUS = 'java.show.server.task.status';
/**
* Get the project settings
*/
export const GET_PROJECT_SETTINGS = 'java.project.getSettings';
/**
* Get the classpaths and modulepaths
*/
export const GET_CLASSPATHS = 'java.project.getClasspaths';
/**
* Check the input file is a test file or not
*/
export const IS_TEST_FILE = 'java.project.isTestFile';
/**
* Get all java projects root path in URI format
*/
export const GET_ALL_JAVA_PROJECTS = 'java.project.getAll';
/**
* Command to switch between standard mode and lightweight mode.
*/
export const SWITCH_SERVER_MODE = 'java.server.mode.switch';
export const LEARN_MORE_ABOUT_REFACTORING = '_java.learnMoreAboutRefactorings';
export const LEARN_MORE_ABOUT_CLEAN_UPS = '_java.learnMoreAboutCleanUps';
export const TEMPLATE_VARIABLES = '_java.templateVariables';
export const NOT_COVERED_EXECUTION = '_java.notCoveredExecution';
export const MEATDATA_FILES_GENERATION = '_java.metadataFilesGeneration';
export const RUNTIME_VALIDATION_OPEN = 'java.runtimeValidation.open';
export const RESOLVE_WORKSPACE_SYMBOL = 'java.project.resolveWorkspaceSymbol';
export const GET_WORKSPACE_PATH = '_java.workspace.path';
export const UPGRADE_GRADLE_WRAPPER = 'java.project.upgradeGradle';
export const LOMBOK_CONFIGURE = "java.lombokConfigure";
/**
* The JDT.LS command to create module-info.java
*/
export const CREATE_MODULE_INFO = "java.project.createModuleInfo";
/**
* The VS Code command to create module-info.java
*/
export const CREATE_MODULE_INFO_COMMAND = "java.project.createModuleInfo.command";
/**
* The JDT.LS command to reload the bundle list (java extension contributions).
*/
export const REFRESH_BUNDLES = "java.reloadBundles";
/**
* The VS Code command to reload the bundle list.
* JDT.LS will call this command before set the server to ready state.
*/
export const REFRESH_BUNDLES_COMMAND = "_java.reloadBundles.command";
/**
* Clean everything in the shared index directory.
*/
export const CLEAN_SHARED_INDEXES = "java.clean.sharedIndexes";
}