Skip to content

Commit 889d7f9

Browse files
committed
add numLines to autocomplete dev data
1 parent bff0118 commit 889d7f9

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

core/autocomplete/CompletionProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export class CompletionProvider {
246246
completionOptions,
247247
cacheHit,
248248
filepath: helper.filepath,
249+
numLines: completion.split("\n").length,
249250
completionId: helper.input.completionId,
250251
gitRepo: await this.ide.getRepoName(helper.filepath),
251252
uniqueId: await this.ide.getUniqueId(),

core/autocomplete/util/types.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
Position,
3-
Range,
4-
RangeInFile,
5-
RangeInFileWithContents,
6-
TabAutocompleteOptions,
7-
} from "../..";
1+
import { Position, Range, RangeInFile, TabAutocompleteOptions } from "../..";
82
import { AutocompleteCodeSnippet } from "../snippets/types";
93

104
export type RecentlyEditedRange = RangeInFile & {
@@ -42,6 +36,7 @@ export interface AutocompleteOutcome extends TabAutocompleteOptions {
4236
modelName: string;
4337
completionOptions: any;
4438
cacheHit: boolean;
39+
numLines: number;
4540
filepath: string;
4641
gitRepo?: string;
4742
completionId: string;

0 commit comments

Comments
 (0)