File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,12 @@ const watch_it = (path) => {
89
89
}
90
90
done_watcher . on ( 'change' , finished_running_in_terminal ) ;
91
91
92
- const data = fs . readFileSync ( path , 'utf8' ) ;
92
+ let data = fs . readFileSync ( path , 'utf8' ) ;
93
+ if ( data . indexOf ( '<think' ) !== - 1 || data . length < 2 || data . length > 1000 ) {
94
+ data = '' ;
95
+ }
93
96
94
- let textToReturn ;
97
+ let textToReturn = '' ;
95
98
const visibleEditors = vscode . window . visibleTextEditors ;
96
99
if ( visibleEditors . length > 1 ) {
97
100
const firstVisibleEditor = visibleEditors [ 0 ] ;
@@ -102,7 +105,7 @@ const watch_it = (path) => {
102
105
// If there's no selection, get the text of the line where the cursor is
103
106
const lineNumber = selection . active . line ;
104
107
const lineText = document . lineAt ( lineNumber ) . text ;
105
- textToReturn = lineText ;
108
+ // textToReturn = lineText;
106
109
} else {
107
110
// Get the text in the current selection
108
111
textToReturn = document . getText ( selection ) ;
You can’t perform that action at this time.
0 commit comments