Here is a quick and easy way to test out your switch and idle issue. On an injected truck, when you depress the clutch, the switch should make continuity - just like a brake switch. So rather than taking the switch out and trying to test it with a multi-meter, you can just unplug the connecter and put a jumper wire across it. This will tell the computer that you have depressed the clutch.
If your truck has cruise control, then you may have two connecters going to the switch - one for the ECM and one for the cruise computer. In that case, I would jumper both. Now start the truck and see if there is any change in idle when you put it in and out of gear. I wouldn't necessarily go driving it that way was the computer will think that the truck is no engaged. You're just trying to find out if this switch was causing your idle issue.
Also, check the condition of the "bumper" or "Stopper" pad on the clutch pedal. The switch will slowly wear a depression in the middle of the pad and it may be enough so that it is not completely closing the switch (i.e., the switch is in perfect condition.) If yours has a depression in it, you can try taping a penny over the pad to make sure it fully closes the switch.
Here is a shot of the pad...
Yes, I know the stopper is missing for the lower switch - I was in the process of replacing it when I decided to take the picture.
And here is the switch itself. This is for a B2600i. You might double-check the p/n for your truck before you replace it. And of course, make sure that it is in fact bad first. It might just need to be adjusted.