Skip to content

Releases: bazel-contrib/vscode-bazel

v0.10.0

11 Apr 17:30
01eb6d6
Compare
Choose a tag to compare

0.10.0 (2024-04-09)

Features

  • Add bazel.info.workspace command variable (#351) (8ae24cf)
  • Add buildifier Json File Configuration (#357) (afc3aed)
  • Introduce pickTarget and pickPackage command variables (#354) (2ef6d2a)
  • Pick up .buildifier.json configuration from the Bazel workspace root (#350) (c2f3f8c)
  • Support bazel tasks from tasks.json (#346) (f2426e4)
  • Support relative paths for bazel.buildifierExecutable (#350) (c2f3f8c)
  • Support running buildifier through Bazel (#350) (c2f3f8c)

Bug Fixes

  • Activate the extension automatically (#344) (085262e)
  • Add a welcome view to the Bazel Build Targets tree view (#372) (1cbdfd6)
  • Don't wait on the "Buildifier not found" notification (#368) (8b659a2)
  • Enable the "Restart LSP" command only if the language server is enabled (#345) (15793a4)
  • Hide commands which are intended to be command variables (#347) (6d3e988)

Version 0.9.0 (February 20, 2024)

21 Feb 17:48
995229b
Compare
Choose a tag to compare

New Features

Bug fixes

  • Make queries share the same server by default (@limdor)

Version 0.8.1 (January 2, 2024)

03 Jan 17:34
cfc931c
Compare
Choose a tag to compare

Bug Fixes

  • Fix regressions caused by bazel query optimization in 0.8.0 (@daivinhtran)
  • Add new and upcoming files names to the list of files marking the root of a repo / workspace (@hypdeb)

Internal Improvements

Version 0.8.0 (December 15, 2023)

19 Dec 00:23
5925fdc
Compare
Choose a tag to compare

New Features

  • Add codelens support for running binary targets (@avx-rchung)

  • WORKSPACE.bazel is now identified as starlark (@lalten)

  • Add bazel.runTarget command for running targets (@romannikov)

  • Add bazel.queryOutputBase configuration setting (@sheldonneuberger-sc)

    Changes where output_base is placed. This is convenient for when someone wants bazel using something other than TMPDIR. This is useful if you use a ramdisk for faster builds, or if your TMPDIR has space or security constraints.

  • Add bazel.info.* commands (@jfirebaugh)

    This command can be used in launch configurations to embed the results of bazel info values. For example:

    "initCommands": [
      "platform settings -w ${command:bazel.info.execution_root}",
    ]
    

Bug Fixes

  • Target completion no longer requires leading quotation mark (@kon72)
  • Optimized performance of bazel query operations (@iamricard)
  • CI updated to Node 20 (@jfirebaugh)

Version 0.7.0 (December 6, 2022)

06 Dec 20:48
8a1b82a
Compare
Choose a tag to compare

New Features

  • Add bazel.commandLine.queryExpression configuration setting (@maximMalofeev)

    A query language expression which determines the packages displayed in the workspace tree and quick picker. The default inspects the entire workspace, but you could narrow it. For example: //part/you/want/...:*

  • Make executable and buildifierExecutable settings machine-overridable (@jfirebaugh)

    This allows them to be set in workspace or folder settings.

  • Starlark syntax highlighting now applies to any file with a .bazel extension (@dierksen)

Bug Fixes

  • Fix and document providing flags to getTargetOutput (@jfirebaugh)

    Additional Bazel flags can be provided to the bazel.getTargetOutput command:

    "inputs": [
        {
            "id": "debugOutputLocation",
            "type": "command",
            "command": "bazel.getTargetOutput",
            "args": ["//my/binary:target", ["--compilation_mode", "dbg"]],
        }
    ]
    

Version 0.6.0 (September 15, 2022)

15 Sep 21:43
a0101da
Compare
Choose a tag to compare

New Features

  • Add bazel.getTargetOutput command.

    This command can be used in launch configurations to obtain the path to an executable built by Bazel. For example, you can set the "program" attribute of a launch configuration to an input variable:

    "program": "${input:binaryOutputLocation}"
    

    Then define a command input variable:

    "inputs": [
        {
            "id": "binaryOutputLocation",
            "type": "command",
            "command": "bazel.getTargetOutput",
            "args": ["//my/binary:target"],
        }
    ]
    

Bug Fixes

  • return default for .sky files in getBuildifierFileType (@arahatashun)

Version 0.5.0 (October 29, 2021)

29 Oct 14:40
Compare
Choose a tag to compare

New Features

  • Implemented IntelliSense code completion for targets and packages in BUILD files.
  • Added rudimentary goto definition handling for BUILD files.

Bug Fixes

  • Fixed problems with CodeLens on Windows.
  • Added support for "no-floating-promises" lint check and fixed violations.
  • Made sure that multiple targets in CodeLens are sorted.

Contributors

We would like to thank Alex Frasson, Chi Wang, ericisko, hensom, Jonathan Dierksen and Neil Ding for their great contributions.

Version 0.4.1 (April 14, 2021)

14 Apr 17:45
d268ed2
Compare
Choose a tag to compare

Version 0.4.1 (April 14, 2021)

Bug Fixes

  • Fix CVE-2021-22539: Malicious project can cause vscode-bazel to run arbitrary executable when linting a *.bzl file.

0.4.0 (August 21, 2020)

21 Aug 16:04
1f44b36
Compare
Choose a tag to compare

Version 0.4.0 (August 21, 2020)

New Features

  • CodeLens has been disabled by default, but can be enabled via a new option.

Bug Fixes

  • WORKSPACE.bazel files are now properly recognized.
  • We made multiple improvements to Windows support.

0.3.0 (September 19, 2019)

19 Sep 21:24
Compare
Choose a tag to compare

Breaking Changes

  • This extension now requires Visual Studio Code 1.30 or higher.
  • This extension now requires buildifier version 0.25.1 or higher.

New Features

  • Buildifier diagnostics have been refined. For example, now only the violating range of text is highlighted instead of the entire line.
  • Added the "Copy Label to Clipboard" context menu option to the Bazel Build Targets view.
  • The .star file extension is now recognized as Starlark for syntax highlighting.

Bug Fixes

  • Formatting a BUILD or Starlark file no longer deletes the editor's content if the file contains syntax errors.
  • BUILD files named BUILD.bazel are now correctly treated as BUILD files, not bzl files, for the purposes of formatting and linting.