@@ -15,7 +15,7 @@ import { showClasspathConfigurationPage } from "../classpath/classpathConfigurat
1515import { markdownPreviewProvider } from "../classpath/markdownPreviewProvider" ;
1616import { getExpService } from "../exp" ;
1717import { TreatmentVariables } from "../exp/TreatmentVariables" ;
18- import { JavaFormatterSettingsEditorProvider } from "../formatter-settings" ;
18+ import { javaFormatterSettingsEditorProvider } from "../formatter-settings" ;
1919
2020export function initialize ( context : vscode . ExtensionContext ) {
2121 context . subscriptions . push ( vscode . commands . registerCommand ( "java.overview" , instrumentCommand ( context , "java.overview" , instrumentCommand ( context , "java.helper.overview" , overviewCmdHandler ) ) ) ) ;
@@ -32,9 +32,6 @@ export function initialize(context: vscode.ExtensionContext) {
3232 context . subscriptions . push ( vscode . commands . registerCommand ( "java.extGuide" , instrumentCommand ( context , "java.extGuide" , javaExtGuideCmdHandler ) ) ) ;
3333 context . subscriptions . push ( instrumentOperationAsVsCodeCommand ( "java.webview.runCommand" , webviewCmdLinkHandler ) ) ;
3434 context . subscriptions . push ( vscode . commands . registerCommand ( "java.welcome" , instrumentCommand ( context , "java.welcome" , showWelcomeWebview ) ) ) ;
35- const javaFormatterSettingsEditorProvider : JavaFormatterSettingsEditorProvider = new JavaFormatterSettingsEditorProvider ( context ) ;
36- const editorOptions = { webviewOptions : { enableFindWidget : true , retainContextWhenHidden : true } , supportsMultipleEditorsPerDocument : false } ;
37- context . subscriptions . push ( vscode . window . registerCustomEditorProvider ( JavaFormatterSettingsEditorProvider . viewType , javaFormatterSettingsEditorProvider , editorOptions ) ) ;
3835 context . subscriptions . push ( vscode . commands . registerCommand ( "java.formatterSettings" , instrumentCommand ( context , "java.formatterSettings" , ( ) => javaFormatterSettingsEditorProvider . showFormatterSettingsEditor ( ) ) ) ) ;
3936 context . subscriptions . push ( vscode . commands . registerCommand ( "java.classpathConfiguration" , instrumentCommand ( context , "java.classpathConfiguration" , async ( ) => {
4037 const showCustomizedView : boolean = await getExpService ( ) ?. getTreatmentVariableAsync ( TreatmentVariables . VSCodeConfig , TreatmentVariables . CustomizedClasspathConfigurationView , true /*checkCache*/ ) || false ;
0 commit comments