mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Merge pull request #208467 from microsoft/tyriar/208413
Fix copy action being stolen by terminal chat
This commit is contained in:
commit
3bd8776d52
|
@ -115,11 +115,7 @@ export class TerminalChatController extends Disposable implements ITerminalContr
|
|||
}
|
||||
this._register(this._chatCodeBlockContextProviderService.registerProvider({
|
||||
getCodeBlockContext: (editor) => {
|
||||
const chatWidget = this.chatWidget;
|
||||
if (!chatWidget) {
|
||||
return;
|
||||
}
|
||||
if (!editor) {
|
||||
if (!editor || !this._chatWidget?.hasValue || !this.hasFocus()) {
|
||||
return;
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue