Skip to content

Commit

Permalink
Use dynamic label sample only when activated
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Bodeen <[email protected]>
  • Loading branch information
gbodeen authored and colin-grant-work committed May 26, 2021
1 parent 8343cb8 commit 151cf8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class SampleDynamicLabelProviderContribution extends DefaultUriLabelProvi
}

canHandle(element: object): number {
if (element.toString().includes('test')) {
if (this.isActive && element.toString().includes('test')) {
return 30;
}
return 0;
Expand Down

0 comments on commit 151cf8c

Please sign in to comment.