continue
                                
                                 continue copied to clipboard
                                
                                    continue copied to clipboard
                            
                            
                            
                        [CON-267] On an unsaved file, Continue sends an empty query, resulting in bad completions
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Linux
- Continue: latest published version
- IDE: VS Code
Description
I am editing a new, unsaved file. It has TypeScript code in it, and VS Code is in TypeScript mode. However, the completions are very bad and always the same. I checked the Continue "output" window, and I can see why.
It's not even trying to send content from the current file. As soon as I saved the file to disk, it seemed to start working normally.
I'm not sure if it is relevant, but I'm using VS Code over a "Remote - SSH" session.
To reproduce
No response
Log output
==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: codegemma:7b-code-q8_0
maxTokens: 1024
stop: <|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<end_of_turn>,<eos>,
,
,/src/,#- coding: utf-8,```,
function,
class,
module,
export,
import
temperature: 0.01
raw: true
############################################
<|fim_prefix|><|fim_suffix|><|fim_middle|>==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: codegemma:7b-code-q8_0
maxTokens: 1024
stop: <|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<end_of_turn>,<eos>,
,
,/src/,#- coding: utf-8,```,
function,
class,
module,
export,
import
temperature: 0.01
raw: true
############################################
<|fim_prefix|>
<|fim_suffix|>
<|fim_middle|>==========================================================================
==========================================================================
Completion:
import { Component, OnInit } from '@angular/core';