Skip to content

Commit

Permalink
feat[console]: add code snippet generation feature in codeEditorWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-gupta-ij committed Dec 18, 2024
1 parent 8d7f607 commit 68640c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/CodeEditorWindow/config/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export const autocomplete = async (monaco, qdrantClient) => {
};
});

autocomplete.getSnippets().forEach((snippet) => {
if (snippet.label.startsWith(header)) {
suggestions.push(snippet);
}
});

return { suggestions };
} else {
// Autocomplete for request body
Expand Down

0 comments on commit 68640c0

Please sign in to comment.