Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
janhartman committed Jan 14, 2025
1 parent a8854bc commit 09c81ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 32 deletions.
20 changes: 1 addition & 19 deletions vscode/src/chat/chat-view/ChatController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,6 @@ export class ChatController implements vscode.Disposable, vscode.WebviewViewProv
this.setWebviewToChat()
break
case 'submit': {
logDebug(
'ChatController',
'onDidReceiveMessage.submit',
JSON.stringify({ intent: message.intent, scores: message.intentScores })
)
await this.handleUserMessage({
requestID: uuid.v4(),
inputText: PromptString.unsafe_fromUserQuery(message.text),
Expand Down Expand Up @@ -795,14 +790,6 @@ export class ChatController implements vscode.Disposable, vscode.WebviewViewProv
})
recorder.recordChatQuestionSubmitted(mentions)

logDebug(
'ChatController',
'getIntent',
JSON.stringify({
detectedIntent: detectedIntent,
detectedIntentScores: detectedIntentScores,
})
)
const { intent, intentScores } = await this.getIntentAndScores({
requestID,
input: editorState
Expand Down Expand Up @@ -1103,11 +1090,6 @@ export class ChatController implements vscode.Disposable, vscode.WebviewViewProv
return
}
this.chatBuilder.removeMessagesFromIndex(humanMessage, 'human')
logDebug(
'ChatController',
'handleEdit',
JSON.stringify({ intent: intent, scores: intentScores })
)
return await this.handleUserMessage({
requestID,
inputText: text,
Expand Down Expand Up @@ -1772,4 +1754,4 @@ export function manipulateWebviewHTML(html: string, options: TransformHTMLOption
async function joinModelWaitlist(): Promise<void> {
await localStorage.setOrDeleteWaitlistO1(true)
telemetryRecorder.recordEvent('cody.joinLlmWaitlist', 'clicked')
}
}
4 changes: 1 addition & 3 deletions vscode/src/chat/chat-view/handlers/OmniboxTelemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
currentAuthStatusAuthed,
firstResultFromOperation,
getTokenCounterUtils,
logDebug,
logError,
telemetryEvents,
wrapInActiveSpan,
Expand Down Expand Up @@ -66,7 +65,6 @@ export class OmniboxTelemetry {
}

public setIntentInfo(intentInfo: IntentInfo) {
logDebug('OmniboxTelemetry', 'setting intent info', JSON.stringify(intentInfo))
this.intentInfo = intentInfo
}

Expand Down Expand Up @@ -94,4 +92,4 @@ export class OmniboxTelemetry {
this.tokenCounterUtils
)
}
}
}
2 changes: 1 addition & 1 deletion vscode/src/chat/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,4 @@ export function isSourcegraphToken(text: string): boolean {

interface CodyIDECssVariables {
[key: string]: string
}
}
10 changes: 1 addition & 9 deletions vscode/webviews/chat/Transcript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,6 @@ const TranscriptInteraction: FC<TranscriptInteractionProps> = memo(props => {
return
}

if (
!editorValue.contextItems.find(contextItem =>
['repository', 'tree'].includes(contextItem.type)
)
) {
return
}

console.log('Transcript', 'onChange', 'setting to undefined')
setIntentResults(undefined)

Expand Down Expand Up @@ -784,4 +776,4 @@ function reevaluateSearchWithSelectedFilters({
index: messageIndexInTranscript,
selectedFilters,
})
}
}

0 comments on commit 09c81ca

Please sign in to comment.