(context: ExtensionContext)
| 157 | } |
| 158 | |
| 159 | export const registerNpmScriptLens = (context: ExtensionContext) => { |
| 160 | const provider = new NpmScriptLenProvider(); |
| 161 | |
| 162 | context.subscriptions.push(provider); |
| 163 | context.subscriptions.push( |
| 164 | languages.registerCodeLensProvider( |
| 165 | { |
| 166 | language: 'json', |
| 167 | pattern: '**/package.json', |
| 168 | }, |
| 169 | provider, |
| 170 | ), |
| 171 | ); |
| 172 | }; |