-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codebase improvements #4584
Codebase improvements #4584
Conversation
✅ Deploy Preview for continuedev canceled.
|
@@ -75,6 +75,7 @@ class ContinueProxy extends OpenAI { | |||
query, | |||
documents: chunks.map((chunk) => chunk.content), | |||
model: this.model, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extrabodyproperties might conflict with using custom fetch added in this pr?
#4581
fileUris.map(async (uri) => { | ||
const content = await ide.readFile(uri); | ||
filepaths.map(async (filepath) => { | ||
const uri = localPathToUri(filepath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will fail for non-file schema paths
@@ -6,6 +6,10 @@ import * as URI from "uri-js"; | |||
|
|||
// Converts a local path to a file:/// URI | |||
export function localPathToUri(path: string) { | |||
if (path.startsWith("file://")) { | |||
console.warn("localPathToUri: path already starts with file://"); | |||
return path; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might not be best place to catch this
No description provided.