File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ export function activate(): void {
16
16
if ( ! editor ) {
17
17
return
18
18
}
19
+ const settings = resolveSettings ( sourcegraph . configuration . get < Settings > ( ) . value )
20
+ if ( ! settings [ 'discussions.decorations.inline' ] ) {
21
+ editor . setDecorations ( decorationType , [ ] ) // clear decorations
22
+ return
23
+ }
19
24
20
25
const uri = resolveURI ( editor . document . uri )
21
26
@@ -28,11 +33,6 @@ export function activate(): void {
28
33
29
34
const decorations : sourcegraph . TextDocumentDecoration [ ] = [ ]
30
35
for ( const thread of threads . nodes ) {
31
- const settings = resolveSettings ( sourcegraph . configuration . get < Settings > ( ) . value )
32
- if ( ! settings [ 'discussions.decorations.inline' ] ) {
33
- return
34
- }
35
-
36
36
if ( thread . target . __typename !== 'DiscussionThreadTargetRepo' ) {
37
37
return
38
38
}
You can’t perform that action at this time.
0 commit comments