How to enable malicious extension? - visual-studio-code

the apollo-graphql extension was marked as malicious (I'm sure mistakingly) ... I need to enable it to work with it as I really enjoy it.
How can I force VS Code to enable it?

You can install it again, it was disabled by MS because of the
Event-Stream package problem

Related

I am unable to connect to the extension marketplace of Visual Studio Code

I found one solution, download latest version from VSCode website. I tried same but still facing this issue.
i want to add React Native extension.
I am unable to access this URL because of the Proxy.
How to resolve this issue?
I'm using VSCodium On Archlinux and had the same problem. I installed vscodium-bin-marketplace to make it work. There's also a package named code-marketplace for Code OSS.
I found a solution that works for me.
Stop VSCode.
Open ~/.vscode/argv.json if you're using VSCode
Open ~/.vscode-oss/argv.json if you're using VSCodium
Then add
// Browser Code Loading.
"enable-browser-code-loading": false
Don't forget to add a comma to the previous entry, since this is a JSON file (but you knew that already, right?).
This just worked for me:
Add the proxy server to VS Code settings.json (open it in VSCode command line)
Add keys "http.proxy" and "https.proxy" with values of your Proxy Server URL, for example:
settings.json:
{
...
"http.proxy": "http://my-http-proxy-server.com:123",
"https.proxy": "https://my-https-proxy-server.com:124"
}
Bypass the url from proxy.
Open proxy settings (run command - inetcpl.cpl)
Go to connection tab, now in your proxy add that url
If it works then ok . Else you have to contact network team or need to do some firewall settings
Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
Delete C:\Users\{username-PC}\AppData\Roaming\Code
Delete C:\Users\{username-PC}\.vscode
Restart
I went to Toggle Developer Tools. As described in here. Saw that ERR_TUNNEL_CONNECTION_FAILED error is there.
I had a proxy server added to the network settings. (Which was working fine for other purposes) I had to remove the proxy server in order to get this working.
Deleting my .vscode (hidden folder) worked for me.
C:\Users\USERNAME.vscode
Other alternative could be uninstalling vscode and deleting the whole folder at
C:\Users\USERNAME\AppData\Local\Programs\Microsoft VS Code
1.Unistall vscode from unins000.exe C:\Users\{username-PC}\AppData\Local\Programs\Microsoft VS Code
2.Delete C:\Users\{username-PC}\AppData\Roaming\Code
3.Delete C:\Users\{username-PC}\.vscode
4.Restart
5.Reset your windows firewall
6.Restart and install Vscode
This worked for me: in extensions search box, wrote #color (I'm guessing searching for anything will do) and extensions tab populated with results. Never saw the error again.
I recommend this solution for linux operating systems:
in file ~/.vscode-oss/argv.json
add this line: "enable-browser-code-loading": false
I am using kaspersky antivirus, disable it for a while, and my problem solved.
If no option works above. You can install the extension through the Vsix file.You can download it from this site.
Vsix File Free Download
If you are using linux you can install code-marketplace using your package manager which in my case it's pamac.
Just like this:
pamac build code-marketplace
This fixed my problem loading extensions in vscode.
goto your pc settings and look for proxy
turn it all off
that worked for me
I just uninstalled vscode downloaded it again and it works fine now for me you can try out this once
When you look at the ip-traffic what it tries to do, it starts with DNS-query with A-record (good) and also with AAAA-record (not so good if you don't have proper v6 routing in place).
Application should have built-in code to try AAAA-record connections and if they fail, it should automatically fall back to v4-connections and routing. Now it fails to do so and just gives an error that it failed to connect marketplace. Well, you just didn't try hard enough, did you?
For Linux systems, you disable your host's v6 protocol with:
# sysctl -w net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6 = 1
and you might want to write them into /etc/sysctl.conf file as well.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
I did it using the world's best editor Vim! :)
You need to restart the application before marketplace starts working.

Duplicate hints while typing expression in Visual Studio Code

Why do I have the same suggestions while typing expression?
Example:
I had exactly the same problem. After a week or so, it get really annoying.
basically, as the comments hint to, there are probably multiple linting or intelisense tools. In my case (for python) i had the pylance extension added.
When i disabled this, the problem went away, but features were missing. So i added it back...
For some reason (i dont know why), this fixed the problem !!!
I can only hypothesise that in some way the extension was corrupted. Nevertheless, it worked.
EDIT:
I can also confirm that unchecking this setting appears to work:
Jupyter: Pylance Handles Notebooks
My current system is Windows 11, with python 3.10.
Final edit (8 Dec 2022):
This is resolved here:
Please could you install VS Code 1.74 and the latest Jupyter, PyLance and Python extension and confirm this still exists.
Visual Studio Code provides an API so third-party extensions and built-in modules can contribute suggestions for auto-completion pop-ups. The system is currently designed so suggestions are merely appended—there's no duplicate detection or removal (perhaps because extensions can also take care of sorting suggestions and such algorithm would get on the way). That means that if you have more than one extension or module for a given language you can easily get duplicate entries.
Having several extensions for PHP is not necessarily a bad idea since they can address different needs (for instance, PHP DocBlocker just creates annotations, it doesn't provide auto-completion suggestions) but you have at least two extensions (PHP Intelephense and PHP Intellisense) that do exactly the same things. That's likely to hurt performance (all your workspace files will be scanned several times) and just adds noise.
I suggest you read the extension descriptions carefully to learn what they do exactly and then figure out which ones you need. Remember that extensions can be enabled/disabled in a per-workspace basis.
The following is just my own totally subjective opinion. Among the PHP extensions that provide code intelligence only two of them seem mature enough:
PHP Intelephense
PHP Intellisense
I've tried both. PHP Intelephense works best for me than PHP Intellisense so that's the one I've kept. I've also disabled php.suggest.basic following the installation instructions because basic suggestions didn't add any value to me (they were blind string matching):
Turn off the php.suggest.basic setting for best results.
... as well as taming builtin Emmet support, which was providing really dumb suggestions:
"emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly"
YMMV.
TLDR; Installing pre-release version of Jupyter solves (v2022.11...)
Ok, so after some more extensive experimentation I think I found what's causing this in my case. After looking at the processes I noticed that there were two Pylance processes running, and consistently this would only be a problem if I was working in a session with a jupyter notebook open or one that had been opened.
saun89 17740 37.3 0.3 1008004 199492 ? Sl 20:58 0:22 /home/saun89/.vscode-server-insiders/bin/fef85ea792f6627c83024d1df726ca729d8c9cb3/node /home/saun89/.vscode-server-insiders/extensions/ms-python.vscode-pylance-2022.11.32/dist/server.bundle.js --cancellationReceive=file:9178e897a2b78b36bfd167f79b36c3bdad2931d71b --node-ipc --clientProcessId=17651
saun89 18743 257 0.7 1304584 382288 ? Sl 20:59 0:20 /home/saun89/.vscode-server-insiders/bin/fef85ea792f6627c83024d1df726ca729d8c9cb3/node /home/saun89/.vscode-server-insiders/extensions/ms-python.vscode-pylance-2022.11.32/dist/server.bundle.js --cancellationReceive=file:8744a321767eed92821fd737be4dc7dcfb728284e5 --node-ipc --clientProcessId=17651
Pylance basically spins up a service for the workspace, and then spins up a separate service for the notebook.
Output from "Python Language Server" logs:
Disabling Jupyter removes the duplication, and after installing an earlier version of the extension (v2022.4) this appears to have fully resolved the issue. I'm going to go ahead and log the extension bug once I have something reproducible.
As of 11/30/22, Jupyter Extension Pre-Release version v2022.11.1003281132 is the latest version fixes this issue. Click the gear icon next to the extension and you should see "install another version..." Then you can select version v2022.11.1003281132.

enable extension in a way other than from typo3 backend

I had disabled an extension from Extension manager.but that lead to an error so i cant enable it from typo3 back end. Please help me to recover again to the same state as before
Try TYPO3-Console command extension:activate
You can use
./vendor/bin/typo3cms extension:list
to see all extensions, and
./vendor/bin/typo3cms extension:activate extension-key
to activate that extension
If you have a state where an extension breaks basic backend functionality try using the Install Tool. In the part „important actions“ is an action check for broken extensions and probably an action clear opcache. Do both (start with opcache if available) as this should fix about 90% of all such problems.

Typo3 extension are automatically deactivated

i have a running Typo3 7.6.11 installation on my webhoster.
I noticed that the extensions "powermail" and "dynamic content elements" get somehow automatically deactivated over night.
I can activate them in the Backend via Extensions, but the next morning they are both deactivated again.
Any ideas on that?
What cron-jobs and scheduler-tasks are configured? at what time?
the next I would do is writing a cronjob, which logs every 5 minutes the md5-hash of your PackageStates.php into a file. if the file is modified the hash should change and you nearly know the time the change occurs. compare to cron-jobs/ scheduler-tasks running at that time.
Check the system log of your installation, if someone else did not login during night into your system. If no-one did, contact your webhoster, since someone has is changing your files directly on the system, so they should be able to figure out if it is some security issue or maybe some faulty backup procedures.
In the Install-Tool there is an option to do a check for broken extensions and after the check the "broken extensions" are deinstalled automatically. May be you have a task running in the scheduler that does this routine?
Normally after a system update some of the extensions are broken because they use a deprecated api and also have to be updated, so you should also check if there is an update for these extensions.
do you have an automatic deployment?
does this deployment know that these extensions needs to be active?
Please check permission of typo3conf/PackageStates.php file, Is there any cron-job that automatic deactivate extensions.
If not then try to overwrite extensions with new vesrion.

How to disable Ecmascript 6 linting warnings in Visual Studio Code RC5?

I know that this is still a release candidate so it's possible that this functionality doesn't yet exist, but there is a setting for it in the Default Settings:
// Specifies which version of ECMA-Script is used.
"javascript.validate.target": "ES5"
I tried overwriting this in the User Settings by entering:
"javascript.validate.target": "ES6"
but this didn't work. Has anyone had any success with this?
ES6 is not yet supported by the JavaScript language service in VSCode.
You can vote for it, though!
Nowadays this is handled in jshint options, so you should set jshint.options.esversion to 6.