Changesets · Branches · Tags · Compare
| Changeset | 44309e42d7966f56c41e8f35c221ce65dece8b2f1f0d0c0be12e8ddfd8a72995 |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-06-30 23:14 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-06-30 23:14 -07:00 |
| Parents | 0999e1dfd2e1, 4f6ee13bd815 |
9 files changed
modified core/package-lock.json +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified extensions/vscode/package.json +1 −1
| @@ -2,7 +2,7 @@ | ||
| 2 | 2 | "name": "continue", |
| 3 | 3 | "icon": "media/icon.png", |
| 4 | 4 | "author": "Continue Dev, Inc", |
| 5 | - "version": "1.1.52", | |
| 5 | + "version": "1.1.53", | |
| 6 | 6 | "repository": { |
| 7 | 7 | "type": "git", |
| 8 | 8 | "url": "https://github.com/continuedev/continue" |
modified extensions/vscode/src/apply/ApplyManager.ts +4 −4
| @@ -42,7 +42,7 @@ | ||
| 42 | 42 | |
| 43 | 43 | const { activeTextEditor } = vscode.window; |
| 44 | 44 | if (!activeTextEditor) { |
| 45 | - vscode.window.showErrorMessage("No active editor to apply edits to"); | |
| 45 | + void vscode.window.showErrorMessage("No active editor to apply edits to"); | |
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |
| @@ -116,14 +116,14 @@ | ||
| 116 | 116 | ) { |
| 117 | 117 | const { config } = await this.configHandler.loadConfig(); |
| 118 | 118 | if (!config) { |
| 119 | - vscode.window.showErrorMessage("Config not loaded"); | |
| 119 | + void vscode.window.showErrorMessage("Config not loaded"); | |
| 120 | 120 | return; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | const llm = |
| 124 | 124 | config.selectedModelByRole.apply ?? config.selectedModelByRole.chat; |
| 125 | 125 | if (!llm) { |
| 126 | - vscode.window.showErrorMessage( | |
| 126 | + void vscode.window.showErrorMessage( | |
| 127 | 127 | `No model with roles "apply" or "chat" found in config.`, |
| 128 | 128 | ); |
| 129 | 129 | return; |
| @@ -177,7 +177,7 @@ | ||
| 177 | 177 | ) { |
| 178 | 178 | const { config } = await this.configHandler.loadConfig(); |
| 179 | 179 | if (!config) { |
| 180 | - vscode.window.showErrorMessage("Config not loaded"); | |
| 180 | + void vscode.window.showErrorMessage("Config not loaded"); | |
| 181 | 181 | return; |
| 182 | 182 | } |
| 183 | 183 |
modified extensions/vscode/src/diff/processDiff.ts +14 −0
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | import { Core } from "core/core"; |
| 2 | +import { DataLogger } from "core/data/log"; | |
| 2 | 3 | import { ContinueGUIWebviewViewProvider } from "../ContinueGUIWebviewViewProvider"; |
| 4 | +import { editOutcomeTracker } from "../extension/EditOutcomeTracker"; | |
| 3 | 5 | import { VsCodeIde } from "../VsCodeIde"; |
| 4 | 6 | import { VerticalDiffManager } from "./vertical/manager"; |
| 5 | 7 | |
| @@ -27,6 +29,11 @@ | ||
| 27 | 29 | |
| 28 | 30 | await ide.openFile(newOrCurrentUri); |
| 29 | 31 | |
| 32 | + // If streamId is not provided, try to get it from the VerticalDiffManager | |
| 33 | + if (!streamId) { | |
| 34 | + streamId = verticalDiffManager.getStreamIdForFile(newOrCurrentUri); | |
| 35 | + } | |
| 36 | + | |
| 30 | 37 | // Clear vertical diffs depending on action |
| 31 | 38 | verticalDiffManager.clearForfileUri(newOrCurrentUri, action === "accept"); |
| 32 | 39 | if (action === "reject") { |
| @@ -37,6 +44,13 @@ | ||
| 37 | 44 | if (streamId) { |
| 38 | 45 | const fileContent = await ide.readFile(newOrCurrentUri); |
| 39 | 46 | |
| 47 | + // Record the edit outcome before updating the apply state | |
| 48 | + await editOutcomeTracker.recordEditOutcome( | |
| 49 | + streamId, | |
| 50 | + action === "accept", | |
| 51 | + DataLogger.getInstance(), | |
| 52 | + ); | |
| 53 | + | |
| 40 | 54 | await sidebar.webviewProtocol.request("updateApplyState", { |
| 41 | 55 | fileContent, |
| 42 | 56 | filepath: newOrCurrentUri, |
modified extensions/vscode/src/diff/vertical/handler.ts +8 −17
| @@ -9,8 +9,8 @@ | ||
| 9 | 9 | indexDecorationType, |
| 10 | 10 | } from "./decorations"; |
| 11 | 11 | |
| 12 | -import type { VerticalDiffCodeLens } from "./manager"; | |
| 13 | 12 | import type { ApplyState, DiffLine } from "core"; |
| 13 | +import type { VerticalDiffCodeLens } from "./manager"; | |
| 14 | 14 | |
| 15 | 15 | export interface VerticalDiffHandlerOptions { |
| 16 | 16 | input?: string; |
| @@ -20,10 +20,12 @@ | ||
| 20 | 20 | numDiffs?: ApplyState["numDiffs"], |
| 21 | 21 | fileContent?: ApplyState["fileContent"], |
| 22 | 22 | ) => void; |
| 23 | + streamId?: string; | |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | export class VerticalDiffHandler implements vscode.Disposable { |
| 26 | 27 | public insertedInCurrentBlock = 0; |
| 28 | + public streamId?: string; | |
| 27 | 29 | disposables: vscode.Disposable[] = []; |
| 28 | 30 | private currentLineIndex: number; |
| 29 | 31 | private cancelled = false; |
| @@ -50,6 +52,7 @@ | ||
| 50 | 52 | public options: VerticalDiffHandlerOptions, |
| 51 | 53 | ) { |
| 52 | 54 | this.currentLineIndex = startLine; |
| 55 | + this.streamId = options.streamId; | |
| 53 | 56 | |
| 54 | 57 | this.removedLineDecorations = new RemovedLineDecorationManager(this.editor); |
| 55 | 58 | this.addedLineDecorations = new AddedLineDecorationManager(this.editor); |
| @@ -330,10 +333,7 @@ | ||
| 330 | 333 | // Then, we insert our diff lines |
| 331 | 334 | await this.editor.edit((editBuilder) => { |
| 332 | 335 | editBuilder.replace(this.range, replaceContent), |
| 333 | - { | |
| 334 | - undoStopAfter: false, | |
| 335 | - undoStopBefore: false, | |
| 336 | - }; | |
| 336 | + { undoStopAfter: false, undoStopBefore: false }; | |
| 337 | 337 | }); |
| 338 | 338 | |
| 339 | 339 | // Lastly, we apply decorations |
| @@ -446,10 +446,7 @@ | ||
| 446 | 446 | editBuilder.insert(new vscode.Position(index, 0), `${text}\n`); |
| 447 | 447 | } |
| 448 | 448 | }, |
| 449 | - { | |
| 450 | - undoStopAfter: false, | |
| 451 | - undoStopBefore: false, | |
| 452 | - }, | |
| 449 | + { undoStopAfter: false, undoStopBefore: false }, | |
| 453 | 450 | ); |
| 454 | 451 | } |
| 455 | 452 | |
| @@ -467,10 +464,7 @@ | ||
| 467 | 464 | new vscode.Range(startLine, startLine.translate(numLines)), |
| 468 | 465 | ); |
| 469 | 466 | }, |
| 470 | - { | |
| 471 | - undoStopAfter: false, | |
| 472 | - undoStopBefore: false, | |
| 473 | - }, | |
| 467 | + { undoStopAfter: false, undoStopBefore: false }, | |
| 474 | 468 | ); |
| 475 | 469 | } |
| 476 | 470 | |
| @@ -486,10 +480,7 @@ | ||
| 486 | 480 | ); |
| 487 | 481 | } |
| 488 | 482 | }, |
| 489 | - { | |
| 490 | - undoStopAfter: false, | |
| 491 | - undoStopBefore: false, | |
| 492 | - }, | |
| 483 | + { undoStopAfter: false, undoStopBefore: false }, | |
| 493 | 484 | ); |
| 494 | 485 | } |
| 495 | 486 |
modified extensions/vscode/src/diff/vertical/manager.ts +63 −7
| @@ -1,4 +1,4 @@ | ||
| 1 | -import { ChatMessage, DiffLine, ILLM, RuleWithSource } from "core"; | |
| 1 | +import { ChatMessage, DiffLine, IDE, ILLM, RuleWithSource } from "core"; | |
| 2 | 2 | import { streamDiffLines } from "core/edit/streamDiffLines"; |
| 3 | 3 | import { pruneLinesFromBottom, pruneLinesFromTop } from "core/llm/countTokens"; |
| 4 | 4 | import { getMarkdownLanguageTagForFile } from "core/util"; |
| @@ -11,6 +11,9 @@ | ||
| 11 | 11 | import { VsCodeWebviewProtocol } from "../../webviewProtocol"; |
| 12 | 12 | |
| 13 | 13 | import { ApplyAbortManager } from "core/edit/applyAbortManager"; |
| 14 | +import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; | |
| 15 | +import { stripImages } from "core/util/messageContent"; | |
| 16 | +import { editOutcomeTracker } from "../../extension/EditOutcomeTracker"; | |
| 14 | 17 | import { VerticalDiffHandler, VerticalDiffHandlerOptions } from "./handler"; |
| 15 | 18 | |
| 16 | 19 | export interface VerticalDiffCodeLens { |
| @@ -23,7 +26,6 @@ | ||
| 23 | 26 | public refreshCodeLens: () => void = () => {}; |
| 24 | 27 | |
| 25 | 28 | private fileUriToHandler: Map<string, VerticalDiffHandler> = new Map(); |
| 26 | - | |
| 27 | 29 | fileUriToCodeLens: Map<string, VerticalDiffCodeLens[]> = new Map(); |
| 28 | 30 | |
| 29 | 31 | private userChangeListener: vscode.Disposable | undefined; |
| @@ -33,6 +35,7 @@ | ||
| 33 | 35 | constructor( |
| 34 | 36 | private readonly webviewProtocol: VsCodeWebviewProtocol, |
| 35 | 37 | private readonly editDecorationManager: EditDecorationManager, |
| 38 | + private readonly ide: IDE, | |
| 36 | 39 | ) { |
| 37 | 40 | this.userChangeListener = undefined; |
| 38 | 41 | } |
| @@ -69,6 +72,10 @@ | ||
| 69 | 72 | return this.fileUriToHandler.get(fileUri); |
| 70 | 73 | } |
| 71 | 74 | |
| 75 | + getStreamIdForFile(fileUri: string): string | undefined { | |
| 76 | + return this.fileUriToHandler.get(fileUri)?.streamId; | |
| 77 | + } | |
| 78 | + | |
| 72 | 79 | // Creates a listener for document changes by user. |
| 73 | 80 | private enableDocumentChangeListener(): vscode.Disposable | undefined { |
| 74 | 81 | if (this.userChangeListener) { |
| @@ -229,6 +236,7 @@ | ||
| 229 | 236 | filepath: fileUri, |
| 230 | 237 | toolCallId, |
| 231 | 238 | }), |
| 239 | + streamId, | |
| 232 | 240 | }, |
| 233 | 241 | ); |
| 234 | 242 | |
| @@ -296,7 +304,11 @@ | ||
| 296 | 304 | toolCallId?: string; |
| 297 | 305 | rulesToInclude: undefined | RuleWithSource[]; |
| 298 | 306 | }): Promise<string | undefined> { |
| 299 | - vscode.commands.executeCommand("setContext", "continue.diffVisible", true); | |
| 307 | + void vscode.commands.executeCommand( | |
| 308 | + "setContext", | |
| 309 | + "continue.diffVisible", | |
| 310 | + true, | |
| 311 | + ); | |
| 300 | 312 | |
| 301 | 313 | let editor = vscode.window.activeTextEditor; |
| 302 | 314 | |
| @@ -373,6 +385,7 @@ | ||
| 373 | 385 | filepath: fileUri, |
| 374 | 386 | toolCallId, |
| 375 | 387 | }), |
| 388 | + streamId, | |
| 376 | 389 | }, |
| 377 | 390 | ); |
| 378 | 391 | |
| @@ -430,7 +443,7 @@ | ||
| 430 | 443 | ); |
| 431 | 444 | } |
| 432 | 445 | |
| 433 | - vscode.commands.executeCommand( | |
| 446 | + void vscode.commands.executeCommand( | |
| 434 | 447 | "setContext", |
| 435 | 448 | "continue.streamingDiff", |
| 436 | 449 | true, |
| @@ -472,10 +485,18 @@ | ||
| 472 | 485 | this.enableDocumentChangeListener(); |
| 473 | 486 | |
| 474 | 487 | if (abortController.signal.aborted) { |
| 475 | - vscode.commands.executeCommand("continue.rejectDiff"); | |
| 488 | + void vscode.commands.executeCommand("continue.rejectDiff"); | |
| 476 | 489 | } |
| 477 | 490 | |
| 478 | - return `${prefix}${streamedLines.join("\n")}${suffix}`; | |
| 491 | + const fileAfterEdit = `${prefix}${streamedLines.join("\n")}${suffix}`; | |
| 492 | + await this.trackEditInteraction({ | |
| 493 | + model: llm, | |
| 494 | + filepath: fileUri, | |
| 495 | + prompt: input, | |
| 496 | + fileAfterEdit, | |
| 497 | + }); | |
| 498 | + | |
| 499 | + return fileAfterEdit; | |
| 479 | 500 | } catch (e) { |
| 480 | 501 | this.disableDocumentChangeListener(); |
| 481 | 502 | const handled = await handleLLMError(e); |
| @@ -487,11 +508,46 @@ | ||
| 487 | 508 | throw new Error(message); |
| 488 | 509 | } |
| 489 | 510 | } finally { |
| 490 | - vscode.commands.executeCommand( | |
| 511 | + void vscode.commands.executeCommand( | |
| 491 | 512 | "setContext", |
| 492 | 513 | "continue.streamingDiff", |
| 493 | 514 | false, |
| 494 | 515 | ); |
| 495 | 516 | } |
| 496 | 517 | } |
| 518 | + | |
| 519 | + async trackEditInteraction({ | |
| 520 | + model, | |
| 521 | + filepath, | |
| 522 | + prompt, | |
| 523 | + fileAfterEdit, | |
| 524 | + }: { | |
| 525 | + model: ILLM; | |
| 526 | + filepath: string; | |
| 527 | + prompt: string; | |
| 528 | + fileAfterEdit: string | undefined; | |
| 529 | + }) { | |
| 530 | + // Get previous code content for outcome tracking | |
| 531 | + const previousCode = await this.ide.readFile(filepath); | |
| 532 | + const newCode = fileAfterEdit ?? ""; | |
| 533 | + const previousCodeLines = previousCode.split("\n").length; | |
| 534 | + const newCodeLines = newCode.split("\n").length; | |
| 535 | + const lineChange = newCodeLines - previousCodeLines; | |
| 536 | + | |
| 537 | + // Store pending edit data for outcome tracking | |
| 538 | + editOutcomeTracker.trackEditInteraction({ | |
| 539 | + streamId: EDIT_MODE_STREAM_ID, | |
| 540 | + timestamp: new Date().toISOString(), | |
| 541 | + modelProvider: model.underlyingProviderName, | |
| 542 | + modelTitle: model.title ?? "", | |
| 543 | + prompt: stripImages(prompt), | |
| 544 | + completion: newCode, | |
| 545 | + previousCode, | |
| 546 | + newCode, | |
| 547 | + filepath: filepath, | |
| 548 | + previousCodeLines, | |
| 549 | + newCodeLines, | |
| 550 | + lineChange, | |
| 551 | + }); | |
| 552 | + } | |
| 497 | 553 | } |
added extensions/vscode/src/extension/EditOutcomeTracker.ts +96 −0
| @@ -0,0 +1,96 @@ | ||
| 1 | +/** | |
| 2 | + * Tracks pending edit interactions until they are accepted or rejected, | |
| 3 | + * then emits editOutcome events with the final result. | |
| 4 | + */ | |
| 5 | +export interface PendingEditData { | |
| 6 | + streamId: string; | |
| 7 | + timestamp: string; | |
| 8 | + modelProvider: string; | |
| 9 | + modelTitle: string; | |
| 10 | + prompt: string; | |
| 11 | + completion: string; | |
| 12 | + previousCode: string; | |
| 13 | + newCode: string; | |
| 14 | + filepath: string; | |
| 15 | + previousCodeLines: number; | |
| 16 | + newCodeLines: number; | |
| 17 | + lineChange: number; | |
| 18 | +} | |
| 19 | + | |
| 20 | +class EditOutcomeTracker { | |
| 21 | + private static instance: EditOutcomeTracker; | |
| 22 | + private pendingEdits: Map<string, PendingEditData> = new Map(); | |
| 23 | + | |
| 24 | + private constructor() {} | |
| 25 | + | |
| 26 | + public static getInstance(): EditOutcomeTracker { | |
| 27 | + if (!EditOutcomeTracker.instance) { | |
| 28 | + EditOutcomeTracker.instance = new EditOutcomeTracker(); | |
| 29 | + } | |
| 30 | + return EditOutcomeTracker.instance; | |
| 31 | + } | |
| 32 | + | |
| 33 | + /** | |
| 34 | + * Store a pending edit interaction for later outcome tracking | |
| 35 | + */ | |
| 36 | + public trackEditInteraction(data: PendingEditData): void { | |
| 37 | + this.pendingEdits.set(data.streamId, data); | |
| 38 | + } | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * Record the outcome of an edit interaction and emit the editOutcome event | |
| 42 | + */ | |
| 43 | + public async recordEditOutcome( | |
| 44 | + streamId: string, | |
| 45 | + accepted: boolean, | |
| 46 | + dataLogger: any, | |
| 47 | + ): Promise<void> { | |
| 48 | + const pendingEdit = this.pendingEdits.get(streamId); | |
| 49 | + if (!pendingEdit) { | |
| 50 | + console.warn(`No pending edit found for streamId: ${streamId}`); | |
| 51 | + return; | |
| 52 | + } | |
| 53 | + | |
| 54 | + // Emit the editOutcome event | |
| 55 | + await dataLogger.logDevData({ | |
| 56 | + name: "editOutcome", | |
| 57 | + data: { | |
| 58 | + modelProvider: pendingEdit.modelProvider, | |
| 59 | + modelTitle: pendingEdit.modelTitle, | |
| 60 | + prompt: pendingEdit.prompt, | |
| 61 | + completion: pendingEdit.completion, | |
| 62 | + previousCode: pendingEdit.previousCode, | |
| 63 | + newCode: pendingEdit.newCode, | |
| 64 | + previousCodeLines: pendingEdit.previousCodeLines, | |
| 65 | + newCodeLines: pendingEdit.newCodeLines, | |
| 66 | + lineChange: pendingEdit.lineChange, | |
| 67 | + accepted, | |
| 68 | + }, | |
| 69 | + }); | |
| 70 | + | |
| 71 | + // Clean up the pending edit | |
| 72 | + this.pendingEdits.delete(streamId); | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** | |
| 76 | + * Clean up pending edits that might have been abandoned | |
| 77 | + */ | |
| 78 | + public cleanupOldPendingEdits(maxAgeMs: number = 30 * 60 * 1000): void { | |
| 79 | + const now = Date.now(); | |
| 80 | + for (const [streamId, edit] of this.pendingEdits.entries()) { | |
| 81 | + const editTime = new Date(edit.timestamp).getTime(); | |
| 82 | + if (now - editTime > maxAgeMs) { | |
| 83 | + this.pendingEdits.delete(streamId); | |
| 84 | + } | |
| 85 | + } | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * Get count of pending edits (for debugging/monitoring) | |
| 90 | + */ | |
| 91 | + public getPendingEditCount(): number { | |
| 92 | + return this.pendingEdits.size; | |
| 93 | + } | |
| 94 | +} | |
| 95 | + | |
| 96 | +export const editOutcomeTracker = EditOutcomeTracker.getInstance(); |
modified extensions/vscode/src/extension/VsCodeExtension.ts +10 −9
| @@ -36,6 +36,7 @@ | ||
| 36 | 36 | } from "../stubs/WorkOsAuthProvider"; |
| 37 | 37 | import { Battery } from "../util/battery"; |
| 38 | 38 | import { FileSearch } from "../util/FileSearch"; |
| 39 | +import { VsCodeIdeUtils } from "../util/ideUtils"; | |
| 39 | 40 | import { VsCodeIde } from "../VsCodeIde"; |
| 40 | 41 | |
| 41 | 42 | import { ConfigYamlDocumentLinkProvider } from "./ConfigYamlDocumentLinkProvider"; |
| @@ -46,7 +47,6 @@ | ||
| 46 | 47 | } from "../activation/NextEditWindowManager"; |
| 47 | 48 | import { getDefinitionsFromLsp } from "../autocomplete/lsp"; |
| 48 | 49 | import { handleTextDocumentChange } from "../util/editLoggingUtils"; |
| 49 | -import { VsCodeIdeUtils } from "../util/ideUtils"; | |
| 50 | 50 | import type { VsCodeWebviewProtocol } from "../webviewProtocol"; |
| 51 | 51 | |
| 52 | 52 | export class VsCodeExtension { |
| @@ -72,7 +72,7 @@ | ||
| 72 | 72 | constructor(context: vscode.ExtensionContext) { |
| 73 | 73 | // Register auth provider |
| 74 | 74 | this.workOsAuthProvider = new WorkOsAuthProvider(context, this.uriHandler); |
| 75 | - this.workOsAuthProvider.refreshSessions(); | |
| 75 | + void this.workOsAuthProvider.refreshSessions(); | |
| 76 | 76 | context.subscriptions.push(this.workOsAuthProvider); |
| 77 | 77 | |
| 78 | 78 | this.editDecorationManager = new EditDecorationManager(context); |
| @@ -138,19 +138,20 @@ | ||
| 138 | 138 | this.configHandler = this.core.configHandler; |
| 139 | 139 | resolveConfigHandler?.(this.configHandler); |
| 140 | 140 | |
| 141 | - this.configHandler.loadConfig(); | |
| 141 | + void this.configHandler.loadConfig(); | |
| 142 | 142 | |
| 143 | 143 | this.verticalDiffManager = new VerticalDiffManager( |
| 144 | 144 | this.sidebar.webviewProtocol, |
| 145 | 145 | this.editDecorationManager, |
| 146 | + this.ide, | |
| 146 | 147 | ); |
| 147 | 148 | resolveVerticalDiffManager?.(this.verticalDiffManager); |
| 148 | 149 | |
| 149 | - setupRemoteConfigSync( | |
| 150 | + void setupRemoteConfigSync( | |
| 150 | 151 | this.configHandler.reloadConfig.bind(this.configHandler), |
| 151 | 152 | ); |
| 152 | 153 | |
| 153 | - this.configHandler.loadConfig().then(({ config }) => { | |
| 154 | + void this.configHandler.loadConfig().then(({ config }) => { | |
| 154 | 155 | const { verticalDiffCodeLens } = registerAllCodeLensProviders( |
| 155 | 156 | context, |
| 156 | 157 | this.verticalDiffManager.fileUriToCodeLens, |
| @@ -301,7 +302,7 @@ | ||
| 301 | 302 | if (stats.size === 0) { |
| 302 | 303 | return; |
| 303 | 304 | } |
| 304 | - this.configHandler.reloadConfig(); | |
| 305 | + void this.configHandler.reloadConfig(); | |
| 305 | 306 | }); |
| 306 | 307 | |
| 307 | 308 | vscode.workspace.onDidChangeTextDocument(async (event) => { |
| @@ -344,7 +345,7 @@ | ||
| 344 | 345 | vscode.authentication.onDidChangeSessions(async (e) => { |
| 345 | 346 | const env = await getControlPlaneEnv(this.ide.getIdeSettings()); |
| 346 | 347 | if (e.provider.id === env.AUTH_TYPE) { |
| 347 | - vscode.commands.executeCommand( | |
| 348 | + void vscode.commands.executeCommand( | |
| 348 | 349 | "setContext", |
| 349 | 350 | "continue.isSignedInToControlPlane", |
| 350 | 351 | true, |
| @@ -355,7 +356,7 @@ | ||
| 355 | 356 | sessionInfo, |
| 356 | 357 | }); |
| 357 | 358 | } else { |
| 358 | - vscode.commands.executeCommand( | |
| 359 | + void vscode.commands.executeCommand( | |
| 359 | 360 | "setContext", |
| 360 | 361 | "continue.isSignedInToControlPlane", |
| 361 | 362 | false, |
| @@ -368,7 +369,7 @@ | ||
| 368 | 369 | }); |
| 369 | 370 | |
| 370 | 371 | // Refresh index when branch is changed |
| 371 | - this.ide.getWorkspaceDirs().then((dirs) => | |
| 372 | + void this.ide.getWorkspaceDirs().then((dirs) => | |
| 372 | 373 | dirs.forEach(async (dir) => { |
| 373 | 374 | const repo = await this.ide.getRepo(dir); |
| 374 | 375 | if (repo) { |
modified packages/config-yaml/src/schemas/data/index.ts +6 −0
| @@ -28,6 +28,10 @@ | ||
| 28 | 28 | editInteractionEventSchema_0_2_0, |
| 29 | 29 | editInteractionEventSchema_0_2_0_noCode, |
| 30 | 30 | } from "./editInteraction/v0.2.0.js"; |
| 31 | +import { | |
| 32 | + editOutcomeEventSchema_0_2_0, | |
| 33 | + editOutcomeEventSchema_0_2_0_noCode, | |
| 34 | +} from "./editOutcome/v0.2.0.js"; | |
| 31 | 35 | import { nextEditEventAllSchema } from "./nextEdit/index.js"; |
| 32 | 36 | import { |
| 33 | 37 | nextEditEventSchema_0_2_0, |
| @@ -103,6 +107,7 @@ | ||
| 103 | 107 | tokensGenerated: tokensGeneratedEventSchema_0_2_0, |
| 104 | 108 | chatInteraction: chatInteractionEventSchema_0_2_0, |
| 105 | 109 | editInteraction: editInteractionEventSchema_0_2_0, |
| 110 | + editOutcome: editOutcomeEventSchema_0_2_0, | |
| 106 | 111 | nextEdit: nextEditEventSchema_0_2_0, |
| 107 | 112 | }, |
| 108 | 113 | noCode: { |
| @@ -111,6 +116,7 @@ | ||
| 111 | 116 | tokensGenerated: tokensGeneratedEventSchema_0_2_0_noCode, |
| 112 | 117 | chatInteraction: chatInteractionEventSchema_0_2_0_noCode, |
| 113 | 118 | editInteraction: editInteractionEventSchema_0_2_0_noCode, |
| 119 | + editOutcome: editOutcomeEventSchema_0_2_0_noCode, | |
| 114 | 120 | nextEdit: nextEditEventSchema_0_2_0_noCode, |
| 115 | 121 | }, |
| 116 | 122 | }, |