Fix left over : after inserting #file

This commit is contained in:
Rob Lourens 2024-01-12 17:08:21 -03:00
parent a00c9c385f
commit a15d1916bb
2 changed files with 2 additions and 1 deletions

View file

@ -251,6 +251,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
showSnippets: false,
showWords: true,
showStatusBar: false,
insertMode: 'replace',
};
options.scrollbar = { ...(options.scrollbar ?? {}), vertical: 'hidden' };

View file

@ -534,7 +534,7 @@ class BuiltinDynamicCompletions extends Disposable {
return null;
}
const afterRange = new Range(position.lineNumber, range.replace.startColumn, position.lineNumber, range.replace.endColumn + 'file:'.length);
const afterRange = new Range(position.lineNumber, range.replace.startColumn, position.lineNumber, range.replace.startColumn + '#file:'.length);
return <CompletionList>{
suggestions: [
<CompletionItem>{