@@ -9,14 +9,14 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
99  public  static  register ( context : vscode . ExtensionContext ) : vscode . Disposable  { 
1010    const  provider  =  new  ResxProvider ( context ) ; 
1111    const  providerRegistration  =  vscode . window . registerCustomEditorProvider ( ResxProvider . viewType ,  provider ) ; 
12-     printChannelOutput ( "ResX Editor custom editor provider registered." ,  true ) ;      
12+     printChannelOutput ( "ResX Editor custom editor provider registered." ,  true ) ; 
1313    return  providerRegistration ; 
1414  } 
1515
1616  private  static  readonly  viewType  =  'resx-editor.editor' ; 
1717  private  registered  =  false ; 
1818  private  currentPanel : vscode . WebviewPanel  |  undefined  =  undefined ; 
19-    
19+ 
2020  constructor ( 
2121    private  readonly  context : vscode . ExtensionContext 
2222  )  {  } 
@@ -56,16 +56,15 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
5656              comment : result . comment 
5757            } ) ; 
5858          } ) ; 
59-       } ) ; 
59+          } ) ; 
6060
61-       this . context . subscriptions . push ( deleteCommand ) ; 
62-       this . context . subscriptions . push ( addCommand ) ; 
61+         this . context . subscriptions . push ( deleteCommand ) ; 
62+         this . context . subscriptions . push ( addCommand ) ; 
63+       } 
64+     } 
65+     catch  ( e )  { 
66+       console . log ( e ) ; 
6367    } 
64-   } 
65-   catch  ( e ) 
66-   { 
67-     console . log ( e ) ; 
68-   } 
6968
7069    async  function  updateWebview ( )  { 
7170      webviewPanel . webview . postMessage ( { 
@@ -96,9 +95,13 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
9695          printChannelOutput ( e . message ,  true ) ; 
9796          vscode . window . showErrorMessage ( e . message ) ; 
9897          return ; 
98+         case  'info' :
99+           printChannelOutput ( e . message ,  true ) ; 
100+           vscode . window . showInformationMessage ( e . message ) ; 
101+           return ; 
99102      } 
100103    } ) ; 
101-      
104+ 
102105    updateWebview ( ) ; 
103106  } 
104107
0 commit comments