Skip to content

Commit

Permalink
Fix issue showing run/debug button for multiline functions (#469)
Browse files Browse the repository at this point in the history
* update version

* Recognize task functions without the end colon

Fixes #464
  • Loading branch information
dragonstyle authored Sep 20, 2024
1 parent 573ac95 commit 081b29b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tools/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.33

- Fix bug that prevented run, debug buttons from appearing for tasks whose function declarations spanned more than single line.

## 0.3.32

- Properly resolve log directory when showing log view using `cmd+L`
Expand Down
2 changes: 1 addition & 1 deletion tools/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": {
"name": "UK AI Safety Institute"
},
"version": "0.3.31",
"version": "0.3.33",
"license": "MIT",
"homepage": "https://inspect.ai-safety-institute.org.uk/",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion tools/vscode/src/providers/codelens/codelens-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ class InspectCodeLensProvider implements CodeLensProvider {
}
}
const kTaskDecoratorPattern = /^\s*@task\b/;
const kFuncPattern = /^\s*def\s*(.*)\(.*:$/;
const kFuncPattern = /^\s*def\s*(.*)\(.*$/;

0 comments on commit 081b29b

Please sign in to comment.