Skip to content

Commit

Permalink
Recognize task functions without the end colon
Browse files Browse the repository at this point in the history
Fixes #464
  • Loading branch information
dragonstyle committed Sep 20, 2024
1 parent c7cab17 commit 36b386b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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/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 36b386b

Please sign in to comment.