File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
1212  } 
1313
1414  private  static  readonly  viewType  =  'resx-editor.editor' ; 
15+   private  registered  =  false ; 
1516
1617  constructor ( 
1718    private  readonly  context : vscode . ExtensionContext 
@@ -28,14 +29,14 @@ export class ResxProvider implements vscode.CustomTextEditorProvider {
2829    } ; 
2930    webviewPanel . webview . html  =  this . _getWebviewContent ( webviewPanel . webview ) ; 
3031
31- 	   let  disposable  =  vscode . commands . registerCommand ( 'resx-editor.deleteResource' ,  ( )  =>  { 
32+      let  disposable  =  vscode . commands . registerCommand ( 'resx-editor.deleteResource' ,  ( )  =>  { 
3233
3334      webviewPanel . webview . postMessage ( { 
3435        type : 'delete' 
3536      } ) ; 
36- 	   } ) ; 
37- 	 
38- 	   this . context . subscriptions . push ( disposable ) ; 
37+      } ) ; 
38+ 
39+      this . context . subscriptions . push ( disposable ) ; 
3940
4041    async  function  updateWebview ( )  { 
4142      webviewPanel . webview . postMessage ( { 
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ let currentRowData = null;
6969
7070                return ; 
7171            case  'delete' :
72+                 console . log ( "delete" ) ; 
73+                 console . log ( currentRowData ) ; 
7274                if  ( currentRowData )  { 
7375                    const  index  =  table . rowsData . indexOf ( currentRowData ) ; 
7476                    if  ( index  >  - 1 )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments