visual-studio-code

Run Nodemon with Typescript compiling?

可紊 提交于 2021-02-20 19:27:30
问题 I want my typescript files to be compiled on every file saving with the command tsc . How do I combine the tsc command with the command that nodemon runs in the build:live script "scripts": { "start": "npm run build:live", "build:live": "nodemon --watch '*.ts' --exec 'ts-node' app.ts", } this script causes nodemon to call itself twice or three times: "build:live": "nodemon --watch '*.ts' --exec 'ts-node app.ts & tsc'", 回答1: This looks like it will achieve what you're looking for: "start":

How to listen to events in vscode's TreeDataProvider?

流过昼夜 提交于 2021-02-20 19:02:45
问题 I'm playing with building a vscode extension, using the TreeDataProvider API. I have a list of things showing, each TreeItem a composed label string, all works fine. What I am missing is a way of reacting to click events on any of the items. VSCode selects the item when you click on it, but I'd like to listen to that event, get the item in question etc... It's not obvious to me from the docs. In general, customizing the TreeItem is severely lacking, e.g. being able to colorize the label or

VSCode not showing changes in source control git panel

若如初见. 提交于 2021-02-20 10:12:38
问题 When I make a change to a file in the project folder, the 'SOURCE CONTROL: GIT' panel is not showing the changes unless I type git add . in the terminal. They do show as 'Uncommitted Changes' in Git Graph. You can see this in the below screenshot: I have quit VSCode and reopened it, and made sure to open the project root folder which has the .git file which when opened showed the changes, but after I had committed, pushed, and then made some new changes, they were again not picked up. How can

VS Code - find panel/view context name for shortcut 'when' expression

大城市里の小女人 提交于 2021-02-20 04:08:54
问题 I'm trying to add some shortcuts to my VS Code instance and I want to scope them using the when expression to avoid conflicts. Alas, I'm struggling to find the right context name to use in the expression to achieve what I want. I've searched the documentation and found that a number of them are listed here: https://code.visualstudio.com/docs/getstarted/keybindings#_contexts But, as the documentation says: The list above isn't exhaustive and you may see some when contexts for specific VS Code

Debug level information fails to output in VS Code

谁说我不能喝 提交于 2021-02-20 04:01:47
问题 In the ConfigureServices method I'm using: var loggerFactory = new LoggerFactory(); loggerFactory.AddDebug(); However, use of LogDebug() fails to output to the debug console. 回答1: Rather than rely on AddDebug()... specify the minimum log level with AddConsole() and the debug level information outputs to the console as expected: loggerFactory.AddConsole(LogLevel.Debug); This works because the methods AddConsole(), AddDebug() etc. only specify where to log information. The issue is discussed in

Debug level information fails to output in VS Code

纵然是瞬间 提交于 2021-02-20 04:01:25
问题 In the ConfigureServices method I'm using: var loggerFactory = new LoggerFactory(); loggerFactory.AddDebug(); However, use of LogDebug() fails to output to the debug console. 回答1: Rather than rely on AddDebug()... specify the minimum log level with AddConsole() and the debug level information outputs to the console as expected: loggerFactory.AddConsole(LogLevel.Debug); This works because the methods AddConsole(), AddDebug() etc. only specify where to log information. The issue is discussed in

Hugo version not updating to latest

寵の児 提交于 2021-02-20 02:51:31
问题 I am trying to work with the Hugo static site generator. Problem: Hugo is saying it is updated to the latest version but it is not. $ hugo version Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate: 2018-04-25T17:16:11Z But the latest version is now v0.70.0 System: Windows Subsystem for Linux via the terminal in Visual Studio Code v1.45.0 Any help would be much appreciated thank you all. 回答1: If you've installed it via the apt package manager, you might be out of luck there, because the

python.dataScience is “Unknown Configuration Setting” in VS Code

安稳与你 提交于 2021-02-19 23:12:01
问题 I am running VS Code (Version 1.52) with extensions Jupyter Notebook (2020.12) and Python (2020.12) on MacOS Catalina. Context: I have problems getting Intellisense to work properly in my Jupyter Notebooks in VS Code. Some have had some success with adding these config parameters to the global settings of VS Code: "python.dataScience.runStartupCommands": [ "%config IPCompleter.greedy=True", "%config IPCompleter.use_jedi = False" ] I went ahead and added those as well but then had to realize

python.dataScience is “Unknown Configuration Setting” in VS Code

扶醉桌前 提交于 2021-02-19 23:08:05
问题 I am running VS Code (Version 1.52) with extensions Jupyter Notebook (2020.12) and Python (2020.12) on MacOS Catalina. Context: I have problems getting Intellisense to work properly in my Jupyter Notebooks in VS Code. Some have had some success with adding these config parameters to the global settings of VS Code: "python.dataScience.runStartupCommands": [ "%config IPCompleter.greedy=True", "%config IPCompleter.use_jedi = False" ] I went ahead and added those as well but then had to realize

python.dataScience is “Unknown Configuration Setting” in VS Code

蹲街弑〆低调 提交于 2021-02-19 23:07:34
问题 I am running VS Code (Version 1.52) with extensions Jupyter Notebook (2020.12) and Python (2020.12) on MacOS Catalina. Context: I have problems getting Intellisense to work properly in my Jupyter Notebooks in VS Code. Some have had some success with adding these config parameters to the global settings of VS Code: "python.dataScience.runStartupCommands": [ "%config IPCompleter.greedy=True", "%config IPCompleter.use_jedi = False" ] I went ahead and added those as well but then had to realize