Merge pull request #233300 from microsoft/tyriar/clean_241107

Remove unused code
pull/233303/head
Daniel Imms 2024-11-07 01:50:49 -08:00 committed by GitHub
commit 3d8a6051f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 23 deletions

View File

@ -345,29 +345,6 @@ export class TerminalChatWidget extends Disposable {
this._storageService.store(this._viewStateStorageKey, JSON.stringify(this._inlineChatWidget.chatWidget.getViewState()), StorageScope.PROFILE, StorageTarget.USER);
}
private _forcedPlaceholder: string | undefined = undefined;
private _updatePlaceholder(): void {
const inlineChatWidget = this._inlineChatWidget;
if (inlineChatWidget) {
inlineChatWidget.placeholder = this._getPlaceholderText();
}
}
private _getPlaceholderText(): string {
return this._forcedPlaceholder ?? '';
}
setPlaceholder(text: string): void {
this._forcedPlaceholder = text;
this._updatePlaceholder();
}
resetPlaceholder(): void {
this._forcedPlaceholder = undefined;
this._updatePlaceholder();
}
clear(): void {
this.cancel();
this._model.clear();