Skip to content

Commit b6d8d21

Browse files
authored
Merge pull request microsoft#197148 from microsoft/aiday/releaseToggleInlineChatIcon
[October Recovery 1] Showing `toggle inline chat icon` only when providers available
2 parents d037ac0 + 1a470c6 commit b6d8d21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatDecorations.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ export class InlineChatDecorationsContribution extends Disposable implements IEd
145145
}
146146

147147
GutterActionsRegistry.registerGutterActionsGenerator(({ lineNumber, editor, accessor }, result) => {
148+
const inlineChatService = accessor.get(IInlineChatService);
149+
const noProviders = Iterable.isEmpty(inlineChatService.getAllProvider());
150+
if (noProviders) {
151+
return;
152+
}
148153
const configurationService = accessor.get(IConfigurationService);
149154
result.push(new Action(
150155
'inlineChat.toggleShowGutterIcon',

0 commit comments

Comments
 (0)