visual-studio-code

VSCode Intellisense not Working for pygame

爱⌒轻易说出口 提交于 2021-02-02 09:35:56
问题 While coding in pygame, I realised that VSCode was not showing up itellisense for quite some pygame modules, and instead showed those modules as variables. After some digging, I found out that if you do import pygame.display as display , the intellisense show up just fine. Is there anyway I can use intelliense without importing these modules like this? 回答1: 'Autocomplete and IntelliSense' was provided by Python Server. In vscode, basically you can choose 'Jedi' or 'Microsoft', and they are

VSCode Intellisense not Working for pygame

≡放荡痞女 提交于 2021-02-02 09:35:53
问题 While coding in pygame, I realised that VSCode was not showing up itellisense for quite some pygame modules, and instead showed those modules as variables. After some digging, I found out that if you do import pygame.display as display , the intellisense show up just fine. Is there anyway I can use intelliense without importing these modules like this? 回答1: 'Autocomplete and IntelliSense' was provided by Python Server. In vscode, basically you can choose 'Jedi' or 'Microsoft', and they are

VSCode Intellisense not Working for pygame

大兔子大兔子 提交于 2021-02-02 09:35:07
问题 While coding in pygame, I realised that VSCode was not showing up itellisense for quite some pygame modules, and instead showed those modules as variables. After some digging, I found out that if you do import pygame.display as display , the intellisense show up just fine. Is there anyway I can use intelliense without importing these modules like this? 回答1: 'Autocomplete and IntelliSense' was provided by Python Server. In vscode, basically you can choose 'Jedi' or 'Microsoft', and they are

Is there a way to make install button work in VSCode extension Webview?

霸气de小男生 提交于 2021-01-29 22:09:01
问题 We are making a VSCode extension on gatsby.js, and we have a tree view that shows a webview when clicked. In the webview, we have an 'install button' that we want to have it run 'npm install pluginName' by sending the command to the terminal. We have a method in a class called 'installPlugin', which parses through npm API to get the plugin data such as the npm install plugin command. For the webview content, we are using panel.webview.html to add the html string. On the button tag, we have an

Is there a way to make install button work in VSCode extension Webview?

不问归期 提交于 2021-01-29 21:28:03
问题 We are making a VSCode extension on gatsby.js, and we have a tree view that shows a webview when clicked. In the webview, we have an 'install button' that we want to have it run 'npm install pluginName' by sending the command to the terminal. We have a method in a class called 'installPlugin', which parses through npm API to get the plugin data such as the npm install plugin command. For the webview content, we are using panel.webview.html to add the html string. On the button tag, we have an

Python3 not accepting my keyboard input after clicking enter

纵然是瞬间 提交于 2021-01-29 20:41:47
问题 enter image description here This randomly happened where my keyboard inputs are not being accpeted once i click enter. From the picture you can see i typed in 10 at first then i clicked enter and ntohing happened to where i can keep continuiosly typing so i typed a 5 after. Once i stop debugging i get the error showing none of the inputs were accepted. I uninstalled all my extensions and even vscode but no luck. 回答1: I found the solution to this issue and i posted the bug issue on github so

How to disable warning from VS-Code GCC Compiler? (not use #pragma)

本秂侑毒 提交于 2021-01-29 20:35:40
问题 I'm working on VS-Code with C/C++ intellisense[gcc-arm]. When I do compile , The VS-Code show me hundred of warning like that: Conversion from 'int' to u16_t{aka 'short unsigned int'} may change value [-Wconversion] I do not want the VSCode show me those warning. But I have no permission to edit the source code . So, Is the any way to disable those warning by adding some arg to c_cpp_properties.json file? 回答1: Referring to my own reference document here, if you have access to the build flags,

Argument of type 'string | string[] | ParsedQs | ParsedQs[] | undefined' is not assignable to parameter of type 'string'

喜欢而已 提交于 2021-01-29 20:13:24
问题 This Error keeps bugging me, a (Type 'string[]' is not assignable to type 'string') error in this code export const generateLabelFile = functions.https.onRequest( async (request, response) => { const dataset = request.query['dataset']; if (!dataset) { response.status(404).json({ error: 'Dataset not found' }); } try { const labelsFile = await generateLabel(dataset); ^^^ ERROR ABOVE response.json({ success: `File uploaded to ${labelsFile}` }); } catch (err) { response.status(500).json({ error:

Getting error message “Linter pylint is not installed”

﹥>﹥吖頭↗ 提交于 2021-01-29 19:59:29
问题 I am trying to code some python using vscode on Windows, but for some reason when I try to run it I get the error message "Linter pylint is not installed". It also says "The terminal process command 'C:\cygwin\bin\bash.exe' failed to launch. I saw this thread Linter pylint is not installed , and have tried to do the top answers to no avail. I don't know where to type some of the instructions (I have tried both the command prompt and cygwin terminal on Windows). This just gives me nonsense

Is it possible to open VSCode from Windows terminal while SSH'ed into a virtual machine?

孤街浪徒 提交于 2021-01-29 19:56:36
问题 I'm working on some tutorials and trying to do something, but no idea if it can be done. I am using windows terminal in Windows 10. I have an Ubuntu virtual machine running. I'd like to: Open Windows terminal SSH into the Linux Virtual Machine Type in the code . command and have it open a version of VS Code on my Windows PC that is working on the folder in the Ubuntu VM. I tried install code locally and on the command line in the other machine, but it doesn't work. I am sure there are other