Skip to content

Commit

Permalink
Remove commented sections and update file type glob pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 20, 2024
1 parent 48be623 commit 9cd1462
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions genaisrc/rv.genai.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,16 @@ script({
},
})

/** ------------------------------------------------
* Configuration
*/
const { errors } = env.vars

/** ------------------------------------------------
* Context
*/
let content = ""
/**
* env.files contains the file selected by the user in VSCode or through the cli arguments.
*/
if (env.files.length) {
content = def("FILE", env.files, {
maxTokens: 5000,
glob: "**/*.{py,ts,cs,rs,c,cpp,h,hpp,js,mjs,mts}", // TODO:
glob: "**/*.{py,ts,cs,rs,c,cpp,h,hpp,js,mjs,mts}",
})
} else {
// No files selected, review the current changes
Expand Down

0 comments on commit 9cd1462

Please sign in to comment.