[Python] Fix "Bundle resource explorer" in VSCode#2764
Merged
Conversation
pietern
approved these changes
Apr 24, 2025
Collaborator
Author
|
@pietern I also updated changelog |
deco-sdk-tagging bot
added a commit
that referenced
this pull request
Apr 30, 2025
## Release v0.250.0 ### Notable Changes * Added inline script execution support to bundle run. You can now run scripts in the same authentication context as a DAB using the databricks bundle run command. ([#2413](#2413)) ### Dependency updates * Upgrade TF provider to 1.75.0 ([#2775](#2775)) * Upgrade Go SDK to 0.65.0 ([#2786](#2786)) ### CLI * Added `databricks apps run-local` command to run Databricks apps locally ([#2555](#2555)) ### Bundles * Raise an error when Unity Catalog volumes are used for paths other than artifacts ([#2754](#2754)) * Fixed issue with jobs and pipelines declared in Python not showing in "Bundle resource explorer" in VSCode ([#2764](#2764)) * Made `experimental/python/mutators` and `experimental/python/resources` fields optional in JSON schema ([#2761](#2761)) * Annotated deprecated fields in JSON schema ([#2770](#2770))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Fix
load_resources_from_current_package_moduleto produce 1-based column offsets instead of 0-based.Enforce that all locations have 1-based column and line numbers, and clearly document their semantics.
Why
VSCode fails to display resources declared in Python code:
The problem didn't affect resources added through
Resources.add_jobandResources.add_pipelinebecause these methods implement 1-based indexing.Tests
Unit tests