Skip to content

Automatically createing my code #303392

@meXeroxlab

Description

@meXeroxlab

Type: Bug

hey i am making a culculator i am a beagineer but the copiolet automatically suggest next line wht should i do want to use my own brain

Extension version: 0.40.1
VS Code version: Code 1.112.0 (07ff9d6, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Logs
Trace: [Ghost][CopilotInlineCompletionItemProvider][provideInlineCompletionItems][GhostTextProvider][provideInlineCompletionItems][GhostTextComputer#getGhostText][GhostTextComputer#getGhostTextWithoutAbortHandling] Post-processed to 1 choices
Debug: [Ghost][CopilotInlineCompletionItemProvider][provideInlineCompletionItems][GhostTextProvider][provideInlineCompletionItems][GhostTextComputer#getGhostText][GhostTextComputer#getGhostTextWithoutAbortHandling] Waiting 189.08840000000782ms before returning completion
Trace: [NES][Provider][handleEndOfLifetime][59d3] reason: Ignored
Trace: [NES][Provider][handleEndOfLifetime][59d3] Superseded by: none, was shown: false
Trace: [NES][Provider][handleListEndOfLifetime][59d3] List icr-59d3c9bd-1aa0-4e6a-8eb3-6c032e45983e disposed, reason: NotTaken
Trace: choice {"delta":{"content":");\n}"},"finish_reason":null}
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] Line 5 emitted with latency 489.67479999992065 ms
Trace: choice {"delta":{"content":""},"finish_reason":"stop"}
Info: message 0 returned. finish reason: [stop]
Debug: message 0 details: finishOffset: [undefined] completionId: [{}] created: [{1773985632}]
Info: request done: requestId: [ad24c7b7-0e08-4077-888a-6791ea8d0620] model deployment ID: []
Debug: [Ghost][CopilotInlineCompletionItemProvider][provideInlineCompletionItems][GhostTextProvider][provideInlineCompletionItems][GhostTextComputer#getGhostText][GhostTextComputer#getGhostTextWithoutAbortHandling] Produced 1 results from cache at 0 offset
Trace: [Ghost][CopilotInlineCompletionItemProvider][provideInlineCompletionItems][GhostTextProvider][provideInlineCompletionItems][GhostTextComputer#getGhostText][GhostTextComputer#getGhostTextWithoutAbortHandling] Ghost text computation complete, returning 1 results
Info: ccreq:e890bb5c.copilotmd | success | nes-callisto-003 | 885ms | [XtabProvider]
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] Line 6 emitted with latency 886.4856999999611 ms
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] ResponseProcessor streamed edit #1 with latency 886.6393999999855 ms
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] Ran diff for #1 with latency 887.609199999948 ms
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] extracting edit #1: [9,9)->["    scanf(\" %c\", &op);","    printf(\"Enter second number: \");","    scanf(\"%d\", &num2);"]
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering] Yielding an edit: [9,9)->["    scanf(\" %c\", &op);","    printf(\"Enter second number: \");","    scanf(\"%d\", &num2);"]
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][processEdit] processing edit #1 (starts at 0)
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][processEdit] resetting shouldExpandEditWindow to false due to receiving an edit
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][processEdit] populated cache for 1
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering][streamEdits] extracting edit #2: [10,11)->[]
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][XtabProvider][doGetNextEditWithSelection][streamEditsWithFiltering] Filtered out an edit: [10,11)->[]
Trace: [NES][NextEditProvider][59d3][_getNextEdit][fetchNextEdit][_executeNewNextEditRequest][streamEnd] 2 edits returned
Debug: [postInsertion] stillInCode: Found! Completion '() {
    int num1, num2;
    char' in file file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c. lexEditDistance fraction was 0.3076923076923077. Char edit distance was 5. Inserted at 28, tracked at 28, found at 31. choiceIndex: 0
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: updated last edit timestamp and cleared line triggers for document for file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c
Trace: [NES][Triggerer][onDidChangeTextEditorSelection][editorSwitch] document switch disabled
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] Return: no recent trigger
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: updated last edit timestamp and cleared line triggers for document for file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: updated last edit timestamp and cleared line triggers for document for file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c
Debug: copilotCloudSessionsProvider#provideChatSessionItems: repoIds=[], isAgentSessionsWorkspace=false
Debug: copilotCloudSessionsProvider#provideChatSessionItems: not a GitHub repo, returning empty
Trace: [GitServiceImpl][doOpenRepository] Active repository: {"_repo":{"rootUri":{"$mid":1,"external":"file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes","path":"/c:/Users/DELL/Documents/Ayush C programes","scheme":"file"},"inputBox":{},"kind":"repository","state":{},"ui":{}},"rootUri":{"$mid":1,"external":"file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes","path":"/c:/Users/DELL/Documents/Ayush C programes","scheme":"file"},"kind":"repository","headBranchName":"main","isRebasing":true,"remotes":[],"remoteFetchUrls":[],"worktrees":[{"name":"Ayush C programes","path":"c:\\Users\\DELL\\Documents\\Ayush C programes","ref":"refs/heads/main","detached":false,"main":true}],"changes":{"mergeChanges":[],"indexChanges":[],"workingTree":[{},{},{}],"untrackedChanges":[]},"_onDidChangeSignal":{"_observers":{},"debugName":"Observable Signal From Event"},"headBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"headCommitHashObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamBranchNameObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"upstreamRemoteObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"isRebasingObs":{"_observers":{},"_debugNameData":{},"_state":0,"_updateCount":0,"_dependencies":{},"_dependenciesToBeRemoved":{},"_isUpdating":false,"_isComputing":false,"_didReportChange":false,"_isInBeforeUpdate":false,"_isReaderValid":false,"_removedObserverToCallEndUpdateOn":null},"_checkIsIgnored":{"_waitingTimeMs":1000,"_queue":[],"_timeout":null},"_isIgnored":{"_map":{},"_map2":{}}}
Trace: ChatStatusWorkspaceIndexingStatus::updateStatusItem(id=38): starting
Trace: CodeSearchChunkSearch::initialize#37 started
Trace: CodeSearchChunkSearch::initialize#37 success. Elapsed 1.5725000000093132
Trace: ChatStatusWorkspaceIndexingStatus::_writeStatusItem()
Debug: [postInsertion] Original offset: 130, Tracked offset: 129
Debug: [relatedFiles] Fetched following traits  for 'file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c'
Debug: [relatedFiles] neighborFiles.getNeighborFilesAndTraits 0 related files found for file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c
Debug: [default] Context providers telemetry: '[]'
Debug: [postInsertion] ghostText.capturedAfterRejected choiceIndex: 0 n {
  properties: {
    headerRequestId: 'd4ea4efe-c006-43c5-8836-e1e6afd0eb84',
    opportunityId: 'icr-2e784012-8758-43ff-9a4f-30ebecdaf5c1',
    reason: 'cache',
    copilot_build: '1',
    copilot_buildType: 'prod',
    languageId: 'cpp',
    afterAccept: 'true',
    isSpeculative: 'true',
    gitRepoInformation: 'available',
    gitRepoUrl: '',
    gitRepoHost: '',
    gitRepoPath: '',
    engineName: 'gpt-41-copilot',
    engineChoiceSource: 'default',
    isMultiline: 'true',
    isCycling: 'false',
    endpoint: 'completions',
    uiKind: 'ghostText',
    temperature: '0',
    n: '1',
    stop: '["\\n\\n"]',
    logit_bias: 'null',
    choiceIndex: '0',
    clientCompletionId: '4e542816-6b9a-47ee-8c51-5e3c4ed240fb',
    serverExperiments: '',
    deploymentId: '',
    hypotheticalPromptJson: '{"prefix":"#include \\nint main()\\n{\\n    int num1, num2;\\n    char op;\\n    printf(\\"Enter first number: \\");\\n    scanf(\\"%d\\", &num1);","context":["Path: Caculator.c"]}',
    hypotheticalPromptSuffixJson: '"\\r\\n}\\r\\n"',
    capturedCodeJson: '""'
  },
  measurements: {
    documentLength: 135,
    documentLineCount: 9,
    foundOffset: 0,
    compCharLen: 48,
    numLines: 1,
    timeToProduceMs: 201.764899999951,
    timeout: 30,
    insertionOffset: 130,
    trackedOffset: 129,
    terminationOffsetInCapturedCode: 0
  },
  issuedTime: 870830.6369,
  filtersAndExp: {
    filters: nce { filters: [Object] },
    exp: n { variables: {}, features: '' }
  },
  displayedTime: 871064.7365
}
Debug: [postInsertion] stillInCode: Found! Completion '"%d", &num1);' in file file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c. lexEditDistance fraction was 0. Char edit distance was 0. Inserted at 117, tracked at 117, found at 117. choiceIndex: 0
Debug: [postInsertion] stillInCode: Not found! Completion 'printf("Enter an operator (+, -, *, /): ");' in file file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c. lexEditDistance fraction was 0.5789473684210527. Char edit distance was 21. Inserted at 130, tracked at 136, found at 74. choiceIndex: 0
Debug: [postInsertion] stillInCode: Found! Completion 'r operat' in file file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c. lexEditDistance fraction was 0.5. Char edit distance was 6. Inserted at 62, tracked at 135, found at 85. choiceIndex: 0
Debug: [postInsertion] stillInCode: Found! Completion 'f("Enter f' in file file:///c%3A/Users/DELL/Documents/Ayush%20C%20programes/Caculator.c. lexEditDistance fraction was 0.4. Char edit distance was 7. Inserted at 78, tracked at 135, found at 111. choiceIndex: 0
Request IDs
ef5ced79-bb68-4710-b283-bb94fcf8be43
da417969-d6ee-4d1e-ac30-145bbbf8084c
3e84485a-1610-418f-8b62-ff478f09cbb8
e633f2ed-b406-4421-a31f-cfc836a961a6
7f704b61-520b-44a0-b5cf-441f3bd11777
4c951658-4032-4923-96d8-411e299d7542
032a2da4-fa33-4d8b-a694-5b6f69bbe629
831a0a10-4074-4bcc-8a18-24d86bbacece
6babd1b0-ad6a-498b-8c1d-8f8441825dc3
28f8332d-96f3-421c-a66e-5260543a126b
87ed3382-b908-49a3-ba67-2f7a78406664
7f55342f-b971-4630-861d-69f9430c9599
0c6656b3-6599-44f4-8c43-d8d4871d4f55
82428531-55c5-4d51-8aa7-4f428ef7cc83
45cf35a7-76da-4a8d-83a1-5c66d5c43bc8
ad24c7b7-0e08-4077-888a-6791ea8d0620
System Info
Item Value
CPUs Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x1916 [Intel(R) HD Graphics 520], DRIVER_VENDOR=Intel, DRIVER_VERSION=30.0.101.1338 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.19041.5794
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.89GB (2.46GB free)
Process Argv --crash-reporter-id 96fb61d1-f0a9-4a28-b12a-ae5ceac2dedf
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
aihoversummaries_t:31469308
3efgi100_wstrepl:31403338
55ia6109:31457054
use-responses-api:31390855
je187915:31454425
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
find_all_ref_in_bg_t:31469306
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31427726
38bie571_auto:31426784
cp_cls_t_1081:31454832
ia-use-proxy-models-svc:31452481
a43f0574a:31442826
e9c30283:31461165
test_treatment2:31471001
nes-conv-2-3:31477815
control_6dc23131:31467998
idci7584:31464702
edit_mode_hidden:31461530
864ei723_large_tool_results_to_disk:31460878
showingstats:31471631
i54ji102:31458073
534a6447:31478749
chat:31457767
0h66b693:31473807
haiku_5942i172:31478154
c-off:31479383
cpptoolsoff-v2:31475362
i2gc6536:31477819
noaffordance1:31474146
db0gd219:31473911
ddid_t:31478206
nes-cj-ctx5k:31479279
getcmakediagnosticsoff:31480156

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from posternew releaseIssues found in a recent release of VS Codetriage-needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions