Skip to content

Commit 53123e2

Browse files
committed
compile
1 parent 8ddaa9c commit 53123e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

_/entry.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@ const watch_it = (path) => {
8989
}
9090
done_watcher.on('change', finished_running_in_terminal);
9191

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+
}
9396

94-
let textToReturn;
97+
let textToReturn = '';
9598
const visibleEditors = vscode.window.visibleTextEditors;
9699
if (visibleEditors.length > 1) {
97100
const firstVisibleEditor = visibleEditors[0];
@@ -102,7 +105,7 @@ const watch_it = (path) => {
102105
// If there's no selection, get the text of the line where the cursor is
103106
const lineNumber = selection.active.line;
104107
const lineText = document.lineAt(lineNumber).text;
105-
textToReturn = lineText;
108+
// textToReturn = lineText;
106109
} else {
107110
// Get the text in the current selection
108111
textToReturn = document.getText(selection);

0 commit comments

Comments
 (0)