-
Notifications
You must be signed in to change notification settings - Fork 49
FAQ
Select File > Preferences > Color Theme
and select a SAS provided theme.
Select File > Preferences > Color Theme
and select a SAS provided theme.
To manage shortcuts in VS Code, Click the "Manage" button from the left bottom and select Keyboard Shortcuts
. Type "run sas" or so to filter and you'll see SAS: Run Selected or All SAS code
command and you can define shortcuts to it.
To prevent the autocomplete from popping up on pressing spacebar, uncheck the "Suggest On Trigger Characters" option in settings. Then the autocomplete will only show when you type matched text or press Ctrl+spacebar.
Set the "Accept Suggestion On Enter" option to false in settings. Then only Tab key will commit suggestions.
Also note that all settings can be set specific to sas to not impact other languages. Refers to https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings
VS Code provides a default autocomplete that suggests existing words gathered in opened documents when there's no other autocomplete provider. But when an extension provided some autocomplete items, the default autocomplete will not show up. It's not specific to SAS. Refers to https://github.com/microsoft/vscode/issues/21611
A new session must be created the first time you run SAS code. Connection time will vary depending on the server connection. Subsequent runs within the session should be quicker.
SAS administrator can refers to this documentation for how to generate client IDs.
The client ID needs authorization_code
grant type. If you want it to automatically refresh access token, it also need refresh_token
grant type.
You'll have to manually trust your server's certificate, with below steps:
-
Get your server's certificate file
1.1. Access your Viya endpoint with Google Chrome or Microsoft Edge
1.2. Click the "lock" icon on the left of the URL on the address bar. It will popup a panel.
1.3. Click "Connection is secure", then click "Certificate is valid". It will open Certificate Viewer.
1.4. Click "Details", then click "Export". Select "Base64-encoded ASCII, certificate chain" and save it to a file.
-
For Mac OS, you can install the certificate file into your Keychain Access and trust the certificate. For other Operating Systems or if you don't want to add the certificate to your system, open VS Code Settings > SAS: User Provided Certificates. Add full path of the certificate file to it.
-
Restart VS Code.
If it doesn't work, here's a workaround:
- Set environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0 (This will bypass the certificate check).
- Shut down all VS Code instances and restart to pick up the environment variable. If you're connecting to a remote workspace, please set the environment variable on the remote system and kill all vscode server processes (for example, run
ps -aux | grep vscode-server
on the remote Linux to see the processes).
Please specify the correct protocol. For example, if your Viya server is on https, make sure you included https://
in your endpoint
setting.
-
For Windows, open
Control Panel\All Control Panel Items\Credential Manager
, clickWindows Credentials
, find items start withvscodesas
, clickRemove
. -
For Mac OS, open
Keychain Access
, selectlogin
keychain, selectPasswords
, find items start withvscodesas
, open context menu and selectDelete
.
Please try restart your VS Code.