Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Preventing Visual Studio Code overloading the login nodes

Part One:

The Visual Studio Code filewatcher and file searcher (rg) indexes all the files you have access to in your workspace. If you have a large dataset (e.g. machine learning) this can take a lot of resources on the login nodes. Please note that making some changes to your settings.json file on Setonix can prevent this issue. 

Column
width900px


Code Block
languagebash
themeDJango
titleTerminal 4. Updating the settings.json file
# Create the settings.json file

$ touch ~/.vscode-server/data/Machine/settings.json

# add the following information to settings.json with your favourite text editor

"files.watcherExclude": {
  "**/.git/objects/**": true,
  "**/.git/subtree-cache/**": true,     
  "**/node_modules/*/**": true,
  "/usr/local/**": true,
  "/scratch/**": true},

"search.followSymlinks": false,

"search.exclude": {     
  "**/.git/objects/**": true,
  "**/.git/subtree-cache/**": true,     
  "**/node_modules/*/**": true,
  "/usr/local/**": true,
  "/scratch/**": true},


Part Two:

It's also important to disable the TypeScript and JavaScript Language Services. 

  1. Hit the extensions button in VS Code (which looks like building blocks on the left toolbar)
  2. Search for ‘@builtin TypeScript’.
  3. Disable the TypeScript and Javascript Language Features extension
  4. Reload

Image Added

Related pages

...