Skip to content

Commit

Permalink
Make addLibraryFolders an alt-command instead of separate button
Browse files Browse the repository at this point in the history
  • Loading branch information
0dinD committed Jan 7, 2021
1 parent b2d3702 commit 4665d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"command": "java.project.addLibraries",
"title": "%contributes.commands.java.project.addLibraries%",
"category": "Java",
"icon": "$(new-file)"
"icon": "$(add)"
},
{
"command": "java.project.addLibraryFolders",
Expand Down Expand Up @@ -475,14 +475,10 @@
},
{
"command": "java.project.addLibraries",
"alt": "java.project.addLibraryFolders",
"when": "view == javaProjectExplorer && viewItem =~ /java:container(?=.*?\\b\\+referencedLibrary\\b)/",
"group": "inline@0"
},
{
"command": "java.project.addLibraryFolders",
"when": "view == javaProjectExplorer && viewItem =~ /java:container(?=.*?\\b\\+referencedLibrary\\b)/",
"group": "inline@1"
},
{
"command": "java.project.removeLibrary",
"when": "view == javaProjectExplorer && viewItem =~ /java:jar(?=.*?\\b\\+referencedLibrary\\b)(?=.*?\\b\\+uri\\b)/",
Expand All @@ -491,7 +487,7 @@
{
"command": "java.project.refreshLibraries",
"when": "view == javaProjectExplorer && viewItem =~ /java:container(?=.*?\\b\\+referencedLibrary\\b)/",
"group": "inline@2"
"group": "inline@1"
},
{
"command": "java.view.package.exportJar",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"contributes.commands.java.project.create": "创建 Java 项目...",
"contributes.commands.java.project.addLibraries": "TRANSLATION NEEDED...",
"contributes.commands.java.project.addLibraryFolders": "TRANSLATION NEEDED...",
"contributes.commands.java.project.removeLibrary": "将该 Jar 文件从 Java 项目类路径中移除",
"contributes.commands.java.project.removeLibrary": "TRANSLATION NEEDED? (English wording changed slightly, see previous commit)",
"contributes.commands.java.view.package.refresh": "刷新",
"contributes.commands.java.project.build.workspace": "构建工作空间",
"contributes.commands.java.project.clean.workspace": "清理工作空间",
Expand Down

0 comments on commit 4665d8c

Please sign in to comment.