Git Product home page Git Product logo

Comments (6)

stevearc avatar stevearc commented on June 14, 2024

is a way to avoid overseer to close the open floating terminal when a task finish?

I'm surprised by this question because by default when a task finishes it should notify and start a timer for cleanup, but nothing else. Can you provide a minimal config + command that reproduces this?

I saw that is possible to show the output in quickfix buffer. There is a way to do it with a VS Code task?

Yes, I thought I documented this, but I guess I didn't. You can specify custom components for VS Code tasks by using the default_vscode component alias

require("overseer").setup({
  component_aliases = {
    default_vscode = {
      "default",
      "on_output_quickfix",
    },
  },
})

I'll add some documentation about this

is there an api to list all tasks defined in tasks.json?

The official API doesn't have this, but there is an unofficial API that is nonetheless mostly stable. I may decide to promote this to a supported interface

require("overseer.template").list({
  dir = vim.fn.getcwd(),
}, function(templates)
  for _, tmpl in ipairs(templates) do
    if tmpl.module == "vscode" then
      print(string.format("tmpl %s", tmpl.name))
    end
  end
end)

I need to go get on a plane, but I'll come back to this after this weekend

from overseer.nvim.

redirect11 avatar redirect11 commented on June 14, 2024

I'm surprised by this question because by default when a task finishes it should notify and start a timer for cleanup, but nothing else. Can you provide a minimal config + command that reproduces this?

On the project I'm workign on, we use make to run commands on a docker running instance. Something like:

make docker_run_cmd ......

I'll try to reproduce it with a simple configuration. I have no problem with scripts that returns exit codes. They do not close the terminal and I can reopen it when they finishes. But I have the problem with the commands like the one above.

from overseer.nvim.

redirect11 avatar redirect11 commented on June 14, 2024

Hi again. Sorry but still didn't had the time to get a working example for my issue. In the meantime I would like to come back to something related to the "Offtopic2" question: I would like to show a file chooser dialog (or a list of file that follow a specific naming pattern) when I select a task to run against a specific file. I was looking into VS Code variable substitution but I still don't know how to achieve this.

from overseer.nvim.

stevearc avatar stevearc commented on June 14, 2024

I don't think tasks.json supports that exactly. From the VS Code docs, pickString lets you specify a set of options, but there's no way to dynamically generate options based on a file pattern.

If you want to run the task on the currently-open file, you can use the ${file} variable as described in the Predefined variables section.

from overseer.nvim.

redirect11 avatar redirect11 commented on June 14, 2024

I've found this answere on stackoverflow that suggests that should possible in VSC but I don't know if it will work on overseer too: https://stackoverflow.com/questions/72198810/run-vs-code-task-on-specific-file-folder-selectable-via-a-drop-down-list

from overseer.nvim.

stevearc avatar stevearc commented on June 14, 2024

The first example using pickString is supported, the second with extension.commandvariable.pickStringRemember is not.

from overseer.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.