Skip to content

Commit 2dc9201

Browse files
authored
Add more entries to expose classpath configuration view (#592)
Signed-off-by: Sheng Chen <[email protected]>
1 parent 334ad4b commit 2dc9201

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@
126126
"command": "java.runtime",
127127
"group": "overflow_30@10",
128128
"when": "view == javaProjectExplorer"
129+
},
130+
{
131+
"command": "java.classpathConfiguration",
132+
"group": "overflow_30@20",
133+
"when": "view == javaProjectExplorer"
134+
}
135+
],
136+
"view/item/context": [
137+
{
138+
"command": "java.classpathConfiguration",
139+
"group": "9_configuration@20",
140+
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+unmanagedFolder\\b)(?=.*?\\b\\+uri\\b)/"
129141
}
130142
]
131143
}

src/classpath/assets/features/classpathConfiguration/components/ProjectSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const ProjectSelector = (): JSX.Element | null => {
5252
return (
5353
<Row className="setting-section">
5454
<Col>
55-
<span className="setting-section-description">Select the project.</span>
55+
<span className="setting-section-description">Select the project folder.</span>
5656
<Dropdown className="mt-1">
5757
<Dropdown.Toggle className="dropdown-button flex-vertical-center text-left">
5858
<span>{projects[activeProjectIndex].name}</span>

src/welcome/assets/components/NavigationPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export default class NavigationPanel extends React.Component {
3939
actions: [
4040
{ name: "Getting Started", command: "java.gettingStarted" },
4141
{ name: "Tutorial: Running and Debugging", command: "java.helper.openUrl", args: ["https://code.visualstudio.com/docs/java/java-debugging"] },
42-
{ name: "Tutorial: Testing", command: "java.helper.openUrl", args: ["https://code.visualstudio.com/docs/java/java-testing"] }
42+
{ name: "Tutorial: Testing", command: "java.helper.openUrl", args: ["https://code.visualstudio.com/docs/java/java-testing"] },
43+
{ name: "Configure Sources, Dependencies, Output Folder...", command: "java.classpathConfiguration"}
4344
]
4445
},
4546
];

0 commit comments

Comments
 (0)