Skip to content

Commit 57a94ff

Browse files
authored
hide formatter setting entries (#632)
Signed-off-by: Shi Chen <[email protected]>
1 parent d007976 commit 57a94ff

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

package.json

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
"onWebviewPanel:java.welcome",
4848
"onCommand:java.classpathConfiguration",
4949
"onWebviewPanel:java.classpathConfiguration",
50-
"onWebviewPanel:java.markdownPreview",
51-
"onCommand:java.formatterSettings"
50+
"onWebviewPanel:java.markdownPreview"
5251
],
5352
"contributes": {
5453
"walkthroughs": [
@@ -191,11 +190,6 @@
191190
"command": "java.extGuide",
192191
"category": "Java",
193192
"title": "Extension Guide"
194-
},
195-
{
196-
"command": "java.formatterSettings",
197-
"category": "Java",
198-
"title": "Open Java Formatter Settings with Preview"
199193
}
200194
],
201195
"configuration": {
@@ -251,19 +245,7 @@
251245
"when": "view == javaProjectExplorer && viewItem =~ /java:project(?=.*?\\b\\+unmanagedFolder\\b)(?=.*?\\b\\+uri\\b)/"
252246
}
253247
]
254-
},
255-
"customEditors": [
256-
{
257-
"viewType": "java.formatterSettingsEditor",
258-
"displayName": "Java Formatter Settings Editor",
259-
"selector": [
260-
{
261-
"filenamePattern": "*.xml"
262-
}
263-
],
264-
"priority": "option"
265-
}
266-
]
248+
}
267249
},
268250
"scripts": {
269251
"vscode:prepublish": "npm run build",

src/commands/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { showClasspathConfigurationPage } from "../classpath/classpathConfigurat
1515
import { markdownPreviewProvider } from "../classpath/markdownPreviewProvider";
1616
import { getExpService } from "../exp";
1717
import { TreatmentVariables } from "../exp/TreatmentVariables";
18-
import { javaFormatterSettingsEditorProvider } from "../formatter-settings";
1918

2019
export function initialize(context: vscode.ExtensionContext) {
2120
context.subscriptions.push(vscode.commands.registerCommand("java.overview", instrumentCommand(context, "java.overview", instrumentCommand(context, "java.helper.overview", overviewCmdHandler))));
@@ -32,7 +31,6 @@ export function initialize(context: vscode.ExtensionContext) {
3231
context.subscriptions.push(vscode.commands.registerCommand("java.extGuide", instrumentCommand(context, "java.extGuide", javaExtGuideCmdHandler)));
3332
context.subscriptions.push(instrumentOperationAsVsCodeCommand("java.webview.runCommand", webviewCmdLinkHandler));
3433
context.subscriptions.push(vscode.commands.registerCommand("java.welcome", instrumentCommand(context, "java.welcome", showWelcomeWebview)));
35-
context.subscriptions.push(vscode.commands.registerCommand("java.formatterSettings", instrumentCommand(context, "java.formatterSettings", () => javaFormatterSettingsEditorProvider.showFormatterSettingsEditor())));
3634
context.subscriptions.push(vscode.commands.registerCommand("java.classpathConfiguration", instrumentCommand(context, "java.classpathConfiguration", async () => {
3735
const showCustomizedView: boolean = await getExpService()?.getTreatmentVariableAsync(TreatmentVariables.VSCodeConfig, TreatmentVariables.CustomizedClasspathConfigurationView, true /*checkCache*/) || false;
3836
if (showCustomizedView) {

0 commit comments

Comments
 (0)