(
profileId?: string,
element?: { sourceFile?: string },
)
| 330 | } |
| 331 | |
| 332 | async openConfigProfile( |
| 333 | profileId?: string, |
| 334 | element?: { sourceFile?: string }, |
| 335 | ) { |
| 336 | let openProfileId = profileId || this.currentProfile?.profileDescription.id; |
| 337 | if (!openProfileId) { |
| 338 | return; |
| 339 | } |
| 340 | const profile = this.profiles.find( |
| 341 | (p) => p.profileDescription.id === openProfileId, |
| 342 | ); |
| 343 | if (!profile) { |
| 344 | console.error(`Profile ${profileId} not found`); |
| 345 | return; |
| 346 | } |
| 347 | |
| 348 | getConfigYamlPath(); |
| 349 | const configFile = element?.sourceFile ?? profile.profileDescription.uri; |
| 350 | await this.ide.openFile(configFile); |
| 351 | } |
| 352 | |
| 353 | // Ancient method of adding custom providers through vs code |
| 354 | private additionalContextProviders: IContextProvider[] = []; |
no test coverage detected