title: Parameters that are also functions - semantic syntax highlighting in VSCode
body: <p>I've been playing around with customizing the semantic syntax highlighting on the new VSCode April 2020 release (coding in Typescript-React), and I've run into a problem. I changed parameter types to be in italics, but parameters that are of type <code>function</code> don't change. Instead, they adopt the semantic highlighting for a function. Inspecting with the theme inspector shows that the parameters of type <code>function</code>, when used in the code, don't have any scopes or semantic information that identifies them as parameters anymore.</p>
  
  <p>I want to be able to define a new style for types that are both parameters and functions. I can change the parameter style inside the function definition of the parameters with the TextMate <code>variable.parpameter.tsx</code> scope, but the highlighting is lost when I call or use the functions.</p>
  
  <p>Example setup with parameter of type <code>function</code> italicised in declaration (<code>variable.parameter.tsx</code> scope) but not when used in function body:
  <a href="https://i.stack.imgur.com/DABTG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DABTG.png" alt="enter image description here"></a></p>
  
  <p><code>arg1</code> definition - theme inspection box
  <a href="https://i.stack.imgur.com/QX8fv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QX8fv.png" alt="enter image description here"></a></p>
  
  <p><code>arg1</code> use in function body - theme inspection box
  <a href="https://i.stack.imgur.com/5WbMZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5WbMZ.png" alt="enter image description here"></a></p>