Code completion suggestions appearing multiple times in WebStorm - node.js

I am working on a project using Angular2 and I would like the IDE to provide me with code hints as I write my code.
I have enabled node_modules as a library and I can get code completion suggestions but the dropdown contains multiple times the same function names like the image below.
What do I need to do to fix this?

Related

How keep tests shortcuts/icons once `auto-run` is switched off from the extension sidebar?

Currently Jest in my VSCode uses the --watch parameter (I use the Orta.vscode-jest extension), which mean when I save a file, it will run all tests in uncommitted files.
It's a good default behavior but sometimes my upcoming commit may imply multiple files and I don't want to waste 75% of my time and resources on tests I don't to focus on.
After reading documentation, I found I can turn off the auto-run (see arrow below), so now when saving nothing happens, and I was expecting a way to trigger manually the test I want.
Unfortunately once done it's like if the extension was totally shut down. See below, I have no longer the ability to run tests through the extension.
Do you know a way to solve this? Keeping icon buttons to trigger manually specific tests?
I saw some homemade solution https://stackoverflow.com/a/55279902/3608410 (see Running a selected Jest test in Visual Studio Code) but I feel it's weird since we have a powerful extension already installed.
(maybe I missed something...)
Thank you,
Didn't see that before but if doing a right click in the test file where needed, in the menu I'm able to run a specific test, handy!

Why does the syntax color code of Visual Studio Code act weird on me?

I am using Visual Studio Code 2022:
Information on my VS code version
Up until now, I have had the colors appearing correctly in the default theme of VS code Dark+ (default dark).
I am currently using it for unity, so for C#, but sometimes use it for HTML CSS.
Those are the extensions that I have currently installed:
List of Extensions
I just noticed recently that right after clicking on a different .CS file, the color code doesn't work anymore. I can't figure out why, but it's super annoying. Classes used to be green, and their names used to be blue. Now, they are All blue.
Here is what it looks like when things are working fine:
Working Fine
And this is what it looks like as soon as I click on another .CS file in the file explorer:
Not Working
The only way to get my colors back, is to close VS code and re-open it.. but it's useless because I am eventually going to select a different .CS file in the explorer, and the problem arises again.
I have been coding for only 4 months, so forgive me if this is actually something simple, but I could not find the exact same issue somewhere else.
Thank you!

"Run|Debug" Buttons Not Appearing on Visual Studio Code Java Programs

A couple days ago I tried to initialize Visual Studio Code to be able to code in C++ using online instructions. They ended up not working at all, but I had edited some settings files (such as a .json file) in Visual Studio Code that I thought were all C++ specific. Afterwards, however, I no longer have the convenient "run | debug" buttons appearing above any "main" functions that I make in java files. In the past I used to be able to just click run and my program would run in the terminal at the bottom of the screen, as opposed to manually compiling and running the program using a terminal. I am running Windows 10. Does anyone know of any way to get these buttons back?
This is an example of what the two buttons look like, appearing above any main functions in a java program.
I also found on the Visual Studio Code website a description of how to begin debugging, attached here, that describes that you need Language Support for Java(TM) by Redhat in order to get these two buttons. I have this extension downloaded, but it is still not working. Please help if you recognize this issue!
What worked for me:
Make sure you have Java extensions, Java Debugger and other basic Java packages installed.
Then making sure the main function is formatted properly like below allowed the Run|Debug buttons to be seen.
public static void main(String[] args) {}
First of all, for troubleshooting, actually we need to have a reproduce steps which can understand what happened in your environment. So can you tell us what you have done to your settings first?
Second, there is a setting under common setting tab, that is Java>Debug>Settings>Enable Run Debug Code Lens. Please check whether this option has been unchecked. Although I think it should not be changed by you.

Wro4j imports not working after some refreshes

So I have a pretty big application with a lot of imports. Third party js libraries and a lot of angular code.
Now I glued them all together with wro4j into two big files that are compressed.
The order in which I did it is correct as the application works as intended. But often times when I press F5 to reload the page, stuff will break. JS console will start throwing errors and some style settings get lost on the page. But at the same time when I look at the source code, everything is still there. Angular tells about missing modules that are all there and the css that is broken... well the correct css is also in one file and correctly loaded into the page source code.
Has anyone experienced something like this? How would you debug this?

Non-blocking Dialog box in Applescript

I have to write a small script to deploy a patch for our Application. The patch
will replace a couple of files in the application.I decided to depploy the patch using Applescript. The files to be copied are quite large and it takes some time for the files to be copied. I wanted to know if there is any way I can get a dialog box which doesn't block the execution of the script so that I can display some message like Updating.. etc while the patch is applied and then close the dialog box after wards.
Thanks
Shivaprasad
There's a scripting addition called Akua Sweets (oldy but goody) that has a display progress command. Get it at osaxen.com. it's in the 'most popular' section at the top of the page.
edit
Oh, bugger, that's only for OS9. It was really useful back in the day, I remember using it a lot (of course everything took a lot longer in those days so progress bars were more in demand).
another edit
You got me inspired, there's a couple of scripts I use that need progress bars, so I went looking and found this scripting addition at http://osaxen.com/files/extrasuites1.1.html
and again
here's a basic tutorial for how to do it in interface builder. I think that's probably the right way to do it.
I myself ran into the same problem. Unfortunately applescript doesn't provide an easy way of implementing a progress bar.
I ended up using the stop loop example found here to build an application. This guy has a bunch of applescript studio xcode projects to download and mess around with. It's some really great sample code if you aren't too familiar with applescript studio.

Resources