visibleWhen for command to appear in context menu

前端 未结 3 1895
攒了一身酷
攒了一身酷 2021-02-15 18:09

I am trying configure visibility of a command within the context menu using \'visibleWhen\' expression within a menuContribution. What I am trying to do is make the command vis

3条回答
  •  耶瑟儿~
    2021-02-15 18:37

    I was able to get it done with a with variable that I came across. Using the same code example above:

    • Add an block within the block
    • Place the existing block in the new block
    • Add a new with variable called activeEditorInput

    Here is the new code example.

    
      
        
          
            ...test extensions
          
        
        
          
            
              ...test extensions
            
          
        
      
    
    

提交回复
热议问题