forked from Helixform/CodeCursor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chat view should respond to editor selection changes
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { | ||
IChatViewService, | ||
CHAT_VIEW_SERVICE_NAME, | ||
} from "../../common/chatService"; | ||
|
||
export class ChatViewServiceImpl implements IChatViewService { | ||
setHasSelectionAction: ((hasSelection: boolean) => void) | null = null; | ||
|
||
get name(): string { | ||
return CHAT_VIEW_SERVICE_NAME; | ||
} | ||
|
||
async setHasSelection(hasSelection: boolean): Promise<void> { | ||
this.setHasSelectionAction?.call(null, hasSelection); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters