visual-studio-code

How to focus a custom view when writing a VS Code extension?

和自甴很熟 提交于 2021-01-27 07:24:16
问题 I need help with my VS Code extension. I've written a custom view which works just fine, however I'd like to activate / focus / bring into view that view by using a keyboard shortcut or a context menu command. I am unable to find how to use the VS code API to achieve that. context.subscriptions.push(vscode.commands.registerCommand('extensionId.showView', () => { // how to do that? })); I know this can be done, because one can display the file explorer by using this code snppet: vscode

How to run python3 code in VSCode? /bin/sh: 1: python: not found

≡放荡痞女 提交于 2021-01-27 07:22:37
问题 I'm trying to run a python file in VSCode using python3. I know I can fix by simply setting to run using integrated terminal like it says in the microsoft vscode tutorial on python. However, I would like the program to print in the output tab and not take up the terminal window. The standard coder runner launch.json looks like this; "version": "0.2.0", "configurations": [ { "name": "Python: Current File", "type": "python", "request": "launch", "program": "${file}", "console":

How have IDE type awareness with app-module-path in Visual Studio Code

泄露秘密 提交于 2021-01-27 07:11:44
问题 I'm in a node environment where they are using app-module-path so that the requires can always be written from a base path. So all path's can be: const something = require('/api/something') instead of having to back down the folder structure with something like: const something = require('../../api/something) . Without the exact path, VSCode says all types are of type any. This means functionality like 'go to definition' won't work. Is there a way to configure VSCode to address this? 回答1:

Error: No matching files were found with search pattern: D:\a\1\s\**\*.apk

大城市里の小女人 提交于 2021-01-27 06:15:10
问题 I have react-native application in windows 10 which works great in my development machine, it can release signed apk and everything is ok. I am using VSTS (TFS Online) as my source control, When I Build my project, everything built successfully, but I get strange error this is where you can see build successfully done, and I face error this is the error details any clue? Update These are my tasks in Build definition Update 2 Add Gradlew task in Build definition 回答1: I'm answering my own

Multiple instances or processes of visual studio code in task manager for single application window

自作多情 提交于 2021-01-27 06:09:36
问题 I'm using Visual Studio Code. I'm facing a performance issue on my machine. I went to task manager and saw that there are several instances of Code.exe in the process tab even though there is only one window of Visual Studio Code running/active on my PC. I can see that in all there are eight instances of Code.exe . Although, I can see that all eight instances are taking RAM memory in the range of few KBs to a maximum of 55 MB. So one thing was sure that these few processes are not eating up

Multiple instances or processes of visual studio code in task manager for single application window

拜拜、爱过 提交于 2021-01-27 06:08:31
问题 I'm using Visual Studio Code. I'm facing a performance issue on my machine. I went to task manager and saw that there are several instances of Code.exe in the process tab even though there is only one window of Visual Studio Code running/active on my PC. I can see that in all there are eight instances of Code.exe . Although, I can see that all eight instances are taking RAM memory in the range of few KBs to a maximum of 55 MB. So one thing was sure that these few processes are not eating up

Multiple instances or processes of visual studio code in task manager for single application window

只谈情不闲聊 提交于 2021-01-27 06:08:12
问题 I'm using Visual Studio Code. I'm facing a performance issue on my machine. I went to task manager and saw that there are several instances of Code.exe in the process tab even though there is only one window of Visual Studio Code running/active on my PC. I can see that in all there are eight instances of Code.exe . Although, I can see that all eight instances are taking RAM memory in the range of few KBs to a maximum of 55 MB. So one thing was sure that these few processes are not eating up

VSCode terminal process command failed to launch

时光怂恿深爱的人放手 提交于 2021-01-27 05:36:30
问题 I am trying out the Hello World sample extension. But when I run the extension from the 'Run Extension' task. It gives the following error: The terminal process command '/bin/zsh -c 'npm run watch'' failed to launch (exit code: 127) But I am able to run the above command from terminal without any errors. 回答1: Just found this https://github.com/microsoft/vscode/issues/76542 For me in OSX apparently is an issue when opening code from the terminal with code . and can be fixed by checking in

C# - VS Code - launch:program … does not exist

谁说我不能喝 提交于 2021-01-27 05:34:21
问题 I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: If I manually change the path in launch.json from: ${workspaceFolder}/bin/Debug/insert-target-framework-here/insert-project-name-here.dll To: "${workspaceFolder}/bin/Debug/netcoreapp2.1/test.dll" It does work, however before it was working fine without me manually typing the path. Also, I have noticed that VS Code no longer asks to rebuild assets like it did

C# - VS Code - launch:program … does not exist

浪尽此生 提交于 2021-01-27 05:34:12
问题 I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: If I manually change the path in launch.json from: ${workspaceFolder}/bin/Debug/insert-target-framework-here/insert-project-name-here.dll To: "${workspaceFolder}/bin/Debug/netcoreapp2.1/test.dll" It does work, however before it was working fine without me manually typing the path. Also, I have noticed that VS Code no longer asks to rebuild assets like it did