To install the extension on a system not connected to the Internet
If the system on which you want to run the Code Sight extension is not connected to the Internet—or in other words, is air-gapped— then the steps to install it are a bit different from the standard steps.
Make sure you have installed Visual Studio Code, along with a code project to analyze.
-
On a system that is connected to the Net,
navigate to
https://marketplace.visualstudio.com/items?itemName=SynopsysCodeSight.vscode-codesight,
and download the VSIX installer for the Code Sight plug-in.
Save this file to a portable storage device: for example, a thumb drive will do.
This installer is named vscode-code-sight-<version number>.vsix.
Be careful: The system might attempt to download this file as a zipped folder, without the .vsix filename extension. If it is not saved as a VSIX file, the installer will not run (and simply changing the file name will not work). To download correctly, right-click the download link, choose Save Target As, and then in the file dialog, type .vsix at the end of the folder name.
-
On the air-gapped system, save the VSIX file to a location you will remember.
The Desktop/ folder is the most convenient location.
-
If it is not already running, start Visual Studio Code.
-
In the activity bar at the left of the VS Code window, click the Extensions button.
Figure 1. Extensions button -
At the top of the EXTENSIONS view, click More Actions (...),
and choose Install from VSIX... from the drop-down menu.
VS Code opens a standard file dialog.
-
In the file dialog, click to highlight the VSIX installer, and then click Install.
The VSIX installer installs the extension.
-
In the left-hand sidebar, click the icon with the Synopsys logo to see the Code Sight controls and begin scanning your code.