VSCode Files

There are some not-checked-in files that are used for building and editing in VSCode. Every now and again, when I wipe out a ren-c clone, this information is lost.

Posting it here is as good as anywhere:

.vscode/c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "C:/Projects/ren-c/build/prep/**",
                "C:/Projects/ren-c/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE",
                "CPLUSPLUS_11=1",
                "ENDIAN_LITTLE"
            ],
            "windowsSdkVersion": "10.0.18362.0",
            "compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx86/x86/cl.exe",
            "compilerArgs": [],
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "msvc-x64"
        }
    ],
    "version": 4
}

.vscode/launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Launch",
            "type": "cppvsdbg",
            //"type": "cppdbg",
            "request": "launch",
            //"request": "attach",
            //"processId": "${command:pickProcess}"
            "program": "C:/Projects/ren-c/build/r3.exe",
            //"program": "/home/hostilefork/ren-c-linux/r3",
            "args": [],
            "stopAtEntry": false,
            "cwd": "C:/Projects/rebol-whitespacers/",
            //"cwd": "/home/hostilefork/Projects/ren-c/tests/",
            "environment": [],
            "console": "newExternalWindow"
            //"externalConsole": true
        }
    ]
}

.vscode/settings.json

{
    "files.associations": {
        "*.c": "cpp",
        "*.r": "plaintext"
    }
}

.vscode/tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build With JOM",
            "type": "shell",
            // nmake is slow but coherent errors, make is fast with jom
            "command": "make clean && make prep && make folders && make",
            "options": {
                "cwd": "/Projects/ren-c/build/",
                "shell": {
                    "executable": "cmd.exe",
                    "args": [
                      "/C",
                      "\"C:/PROGRA~1/Microsoft Visual Studio/2022/Community/Common7/Tools/VsDevCmd.bat\"",
                      "&&"
                    ]
                }
            },
            "problemMatcher": {
                "base": "$msCompile"
            },

            "group": {
                "kind": "build",
                "isDefault": true
            },

            "presentation": {
                "clear": true // <-- this line
            }
       }
    ]
}

If anyone is using GitHub CoPilot in VSCode, there is a crappy behavior where cursoring up in the chat scrolls to previous chats if you hit the top of the input window.

It's like they don't use their own software.

You can get rid of it with adding this to Preferences: Open Keyboard Shortcuts (JSON)

{
    "command": "-history.showPrevious",
    "key": "up"
  },
  {
    "command": "-history.showNext",
    "key": "down"
  },
  {
    "command": "history.showPrevious",
    "key": "up",
    "when": "historyNavigationBackwardsEnabled && historyNavigationWidgetFocus && !isComposing && !suggestWidgetVisible && !inChat"
  },
  {
    "command": "history.showNext",
    "key": "down",
    "when": "historyNavigationForwardsEnabled && historyNavigationWidgetFocus && !isComposing && !suggestWidgetVisible && !inChat"
  }