diff --git a/.gitignore b/.gitignore index 9641d25748..6e4fe723a2 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,11 @@ token package-lock.json -.vscode/ +# ignore files in /.vscode/ except for launch.json and extensions.json +/.vscode/** +!/.vscode/launch.json +!/.vscode/extensions.json + cypress/platform/current.html cypress/platform/experimental.html local/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..9633bed665 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,8 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "zixuanchen.vitest-explorer", + "luniclynx.bison" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..92df7056e1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Debug Current Test File", + "autoAttachChildProcesses": true, + "skipFiles": ["/**", "**/node_modules/**"], + "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs", + "args": ["run", "${relativeFile}"], + "smartStep": true, + "console": "integratedTerminal" + } + ] +}