1
+ /*
2
+ Copyright (c) 2023-2024, Oracle and/or its affiliates.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ https://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+ import { appendPrefixToCommand } from "../utils" ;
17
+
18
+
19
+ export const extCommands = {
20
+ configureRunSettings : appendPrefixToCommand ( 'workspace.configureRunSettings' ) ,
21
+ newFromTemplate : appendPrefixToCommand ( 'workspace.new' ) ,
22
+ newProject : appendPrefixToCommand ( 'workspace.newproject' ) ,
23
+ openTest : appendPrefixToCommand ( 'open.test' ) ,
24
+ deleteCache : appendPrefixToCommand ( 'delete.cache' ) ,
25
+ downloadJdk : appendPrefixToCommand ( 'download.jdk' ) ,
26
+ compileWorkspace : appendPrefixToCommand ( 'workspace.compile' ) ,
27
+ cleanWorkspace : appendPrefixToCommand ( 'workspace.clean' ) ,
28
+ compileProject : appendPrefixToCommand ( 'project.compile' ) ,
29
+ cleanProject : appendPrefixToCommand ( 'project.clean' ) ,
30
+ openType : appendPrefixToCommand ( 'open.type' ) ,
31
+ goToSuperImpl : appendPrefixToCommand ( 'java.goto.super.implementation' ) ,
32
+ renameElement : appendPrefixToCommand ( 'rename.element.at' ) ,
33
+ surroundWith : appendPrefixToCommand ( 'surround.with' ) ,
34
+ generateCode : appendPrefixToCommand ( 'generate.code' ) ,
35
+ runTest : appendPrefixToCommand ( 'run.test' ) ,
36
+ debugTest : appendPrefixToCommand ( 'debug.test' ) ,
37
+ runSingle : appendPrefixToCommand ( 'run.single' ) ,
38
+ debugSingle : appendPrefixToCommand ( 'debug.single' ) ,
39
+ projectRun : appendPrefixToCommand ( 'project.run' ) ,
40
+ projectDebug : appendPrefixToCommand ( 'project.debug' ) ,
41
+ projectTest : appendPrefixToCommand ( 'project.test' ) ,
42
+ packageTest : appendPrefixToCommand ( 'package.test' ) ,
43
+ openStackTrace : appendPrefixToCommand ( 'open.stacktrace' ) ,
44
+ workspaceSymbols : appendPrefixToCommand ( 'workspace.symbols' ) ,
45
+ abstractMethodsComplete : appendPrefixToCommand ( 'java.complete.abstract.methods' ) ,
46
+ startupCondition : appendPrefixToCommand ( 'startup.condition' ) ,
47
+ nbEventListener : appendPrefixToCommand ( 'addEventListener' ) ,
48
+ editNodeProps : appendPrefixToCommand ( 'node.properties.edit' ) ,
49
+ selectEditorProjs : appendPrefixToCommand ( 'select.editor.projects' ) ,
50
+ attachDebugger : appendPrefixToCommand ( "java.attachDebugger.connector" ) ,
51
+ startDebug : 'workbench.action.debug.start' ,
52
+ }
53
+
54
+ export const builtInCommands = {
55
+ setCustomContext : 'setContext' ,
56
+ openFolder : 'vscode.openFolder' ,
57
+ reloadWindow : 'workbench.action.reloadWindow' ,
58
+ focusActiveEditorGroup : 'workbench.action.focusActiveEditorGroup' ,
59
+ goToEditorLocations : 'editor.action.goToLocations' ,
60
+ renameSymbol : 'editor.action.rename' ,
61
+ quickAccess : 'workbench.action.quickOpen' ,
62
+ openSettings : 'workbench.action.openSettings'
63
+ }
64
+
65
+ export const nbCommands = {
66
+ newFromTemplate : appendPrefixToCommand ( 'new.from.template' ) ,
67
+ newProject : appendPrefixToCommand ( 'new.project' ) ,
68
+ goToTest : appendPrefixToCommand ( 'go.to.test' ) ,
69
+ quickOpen : appendPrefixToCommand ( 'quick.open' ) ,
70
+ superImpl : appendPrefixToCommand ( 'java.super.implementation' ) ,
71
+ resolveStackLocation : appendPrefixToCommand ( 'resolve.stacktrace.location' ) ,
72
+ implementAbstractMethods : appendPrefixToCommand ( 'java.implement.all.abstract.methods' ) ,
73
+ archiveFileContent : appendPrefixToCommand ( 'get.archive.file.content' ) ,
74
+ htmlProcessCmd : appendPrefixToCommand ( 'htmlui.process.command' ) ,
75
+ projectConfigurations : appendPrefixToCommand ( 'project.configurations' ) ,
76
+ debuggerConfigurations : appendPrefixToCommand ( 'java.attachDebugger.configurations' ) ,
77
+ runProjectAction : appendPrefixToCommand ( 'project.run.action' ) ,
78
+ buildWorkspace : appendPrefixToCommand ( 'build.workspace' ) ,
79
+ cleanWorkspace : appendPrefixToCommand ( 'clean.workspace' )
80
+ }
0 commit comments