correctly pass file contents for untitled files
This commit is contained in:
parent
707bc867fe
commit
5dbff60b2a
1 changed files with 9 additions and 1 deletions
|
|
@ -199,12 +199,20 @@ export class ContinueCompletionProvider
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Manually pass file contents for unsaved, untitled files
|
||||
let filepath = document.uri.fsPath;
|
||||
if (document.isUntitled) {
|
||||
manuallyPassFileContents = document.getText();
|
||||
}
|
||||
|
||||
// Handle commit message input box
|
||||
let manuallyPassPrefix: string | undefined = undefined;
|
||||
|
||||
const input: AutocompleteInput = {
|
||||
isUntitledFile: document.isUntitled,
|
||||
completionId: uuidv4(),
|
||||
filepath: document.uri.fsPath,
|
||||
filepath,
|
||||
pos,
|
||||
recentlyEditedFiles: [],
|
||||
recentlyEditedRanges:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue