diff --git a/.prettierrc b/.prettierrc index b62f9dff18..c9da1bd439 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,6 +5,15 @@ "useTabs": false, "quoteProps": "preserve", "overrides": [ + { + "files": [".vscode/*.json"], + "options": { + "parser": "jsonc", + "quoteProps": "preserve", + "singleQuote": false, + "trailingComma": "all" + } + }, { "files": ["*.md"], "options": { diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index fda3a058d8..3bd648a1ff 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -17,7 +17,7 @@ "${workspaceFolder}/src/deps", "${workspaceFolder}/src/napi/*", "${workspaceFolder}/packages/bun-usockets/src", - "${workspaceFolder}/packages/" + "${workspaceFolder}/packages/", ], "browse": { "path": [ @@ -30,10 +30,10 @@ "${workspaceFolder}/src/deps/boringssl/include/*", "${workspaceFolder}/packages/bun-usockets/*", "${workspaceFolder}/packages/bun-uws/*", - "${workspaceFolder}/src/napi/*" + "${workspaceFolder}/src/napi/*", ], "limitSymbolsToIncludedHeaders": true, - "databaseFilename": ".vscode/cppdb" + "databaseFilename": ".vscode/cppdb", }, "defines": [ "STATICALLY_LINKED_WITH_JavaScriptCore=1", @@ -44,12 +44,12 @@ "BUILDING_JSCONLY__", "USE_FOUNDATION=1", "ASSERT_ENABLED=1", - "DU_DISABLE_RENAMING=1" + "DU_DISABLE_RENAMING=1", ], "macFrameworkPath": [], "compilerPath": "${workspaceFolder}/.vscode/clang++", "cStandard": "c17", - "cppStandard": "c++20" + "cppStandard": "c++20", }, { "name": "BunWithJSCDebug", @@ -72,7 +72,7 @@ "${workspaceFolder}/src/deps", "${workspaceFolder}/src/napi/*", "${workspaceFolder}/packages/bun-usockets/src", - "${workspaceFolder}/packages/" + "${workspaceFolder}/packages/", ], "browse": { "path": [ @@ -94,10 +94,10 @@ "${workspaceFolder}/src/deps/boringssl/include/", "${workspaceFolder}/packages/bun-usockets/", "${workspaceFolder}/packages/bun-uws/", - "${workspaceFolder}/src/napi" + "${workspaceFolder}/src/napi", ], "limitSymbolsToIncludedHeaders": true, - "databaseFilename": ".vscode/cppdb_debug" + "databaseFilename": ".vscode/cppdb_debug", }, "defines": [ "STATICALLY_LINKED_WITH_JavaScriptCore=1", @@ -108,13 +108,13 @@ "BUILDING_JSCONLY__", "USE_FOUNDATION=1", "ASSERT_ENABLED=1", - "DU_DISABLE_RENAMING=1" + "DU_DISABLE_RENAMING=1", ], "macFrameworkPath": [], "compilerPath": "${workspaceFolder}/.vscode/clang++", "cStandard": "c17", - "cppStandard": "c++20" - } + "cppStandard": "c++20", + }, ], - "version": 4 + "version": 4, } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f78c35d22..29d8dbad5a 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -28,6 +28,6 @@ "tamasfe.even-better-toml", // Other - "bierner.comment-tagged-templates" - ] + "bierner.comment-tagged-templates", + ], } diff --git a/.vscode/launch.json b/.vscode/launch.json index 470c19c916..619197fac0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -18,9 +18,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -33,9 +33,9 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "1", - "BUN_DEBUG_FileReader": "1" + "BUN_DEBUG_FileReader": "1", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -47,9 +47,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "0" + "BUN_GARBAGE_COLLECTOR_LEVEL": "0", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -61,9 +61,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "0", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -75,9 +75,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -89,9 +89,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -104,14 +104,14 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?wait=1" + "BUN_INSPECT": "ws://localhost:0/?wait=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "lldb", @@ -124,14 +124,14 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?break=1" + "BUN_INSPECT": "ws://localhost:0/?break=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // bun run [file] { @@ -144,9 +144,9 @@ "env": { "FORCE_COLOR": "0", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -158,9 +158,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "0" + "BUN_GARBAGE_COLLECTOR_LEVEL": "0", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -172,9 +172,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "0", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -186,9 +186,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -200,9 +200,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -215,14 +215,14 @@ "FORCE_COLOR": "0", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?wait=1" + "BUN_INSPECT": "ws://localhost:0/?wait=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "lldb", @@ -235,14 +235,14 @@ "FORCE_COLOR": "0", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?break=1" + "BUN_INSPECT": "ws://localhost:0/?break=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // bun test [...] { @@ -255,9 +255,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -269,9 +269,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "0" + "BUN_GARBAGE_COLLECTOR_LEVEL": "0", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -283,9 +283,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "0", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -297,9 +297,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -311,9 +311,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -326,14 +326,14 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?wait=1" + "BUN_INSPECT": "ws://localhost:0/?wait=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "lldb", @@ -346,14 +346,14 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/?break=1" + "BUN_INSPECT": "ws://localhost:0/?break=1", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // bun exec [...] { @@ -366,9 +366,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, // bun test [*] { @@ -381,9 +381,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -395,9 +395,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "0" + "BUN_GARBAGE_COLLECTOR_LEVEL": "0", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -410,14 +410,14 @@ "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", "BUN_GARBAGE_COLLECTOR_LEVEL": "2", - "BUN_INSPECT": "ws://localhost:0/" + "BUN_INSPECT": "ws://localhost:0/", }, "console": "internalConsole", "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "lldb", @@ -429,9 +429,9 @@ "env": { "FORCE_COLOR": "1", "BUN_DEBUG_QUIET_LOGS": "1", - "BUN_GARBAGE_COLLECTOR_LEVEL": "2" + "BUN_GARBAGE_COLLECTOR_LEVEL": "2", }, - "console": "internalConsole" + "console": "internalConsole", }, { "type": "lldb", @@ -440,7 +440,7 @@ "program": "node", "args": ["src/runner.node.mjs"], "cwd": "${workspaceFolder}/packages/bun-internal-test", - "console": "internalConsole" + "console": "internalConsole", }, // Windows: bun test [file] { @@ -453,22 +453,22 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_jest", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "1" - } - ] + "value": "1", + }, + ], }, { "type": "cppvsdbg", @@ -480,33 +480,33 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_EventLoop", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_uv", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_SYS", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_PipeWriter", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -518,17 +518,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "0" - } - ] + "value": "0", + }, + ], }, { "type": "cppvsdbg", @@ -540,17 +540,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "0" + "value": "0", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -562,26 +562,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?wait=1" - } + "value": "ws://localhost:0/?wait=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "cppvsdbg", @@ -593,26 +593,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?break=1" - } + "value": "ws://localhost:0/?break=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // Windows: bun run [file] { @@ -625,17 +625,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -647,14 +647,14 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "0" - } - ] + "value": "0", + }, + ], }, { "type": "cppvsdbg", @@ -666,17 +666,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "0" + "value": "0", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -688,26 +688,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?wait=1" - } + "value": "ws://localhost:0/?wait=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "cppvsdbg", @@ -719,26 +719,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?break=1" - } + "value": "ws://localhost:0/?break=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // Windows: bun test [...] { @@ -751,17 +751,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -773,17 +773,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "0" - } - ] + "value": "0", + }, + ], }, { "type": "cppvsdbg", @@ -795,17 +795,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "0" + "value": "0", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -817,17 +817,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -839,17 +839,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -861,26 +861,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?wait=1" - } + "value": "ws://localhost:0/?wait=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "cppvsdbg", @@ -892,26 +892,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/?break=1" - } + "value": "ws://localhost:0/?break=1", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, // Windows: bun exec [...] { @@ -924,17 +924,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, // Windows: bun test [*] { @@ -947,17 +947,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" - } - ] + "value": "2", + }, + ], }, { "type": "cppvsdbg", @@ -969,17 +969,17 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "1" + "value": "1", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "0" - } - ] + "value": "0", + }, + ], }, { "type": "cppvsdbg", @@ -991,26 +991,26 @@ "environment": [ { "name": "FORCE_COLOR", - "value": "1" + "value": "1", }, { "name": "BUN_DEBUG_QUIET_LOGS", - "value": "0" + "value": "0", }, { "name": "BUN_GARBAGE_COLLECTOR_LEVEL", - "value": "2" + "value": "2", }, { "name": "BUN_INSPECT", - "value": "ws://localhost:0/" - } + "value": "ws://localhost:0/", + }, ], "serverReadyAction": { "pattern": "https://debug.bun.sh/#localhost:([0-9]+)/", "uriFormat": "https://debug.bun.sh/#ws://localhost:%s/", - "action": "openExternally" - } + "action": "openExternally", + }, }, { "type": "cppvsdbg", @@ -1019,19 +1019,19 @@ "program": "node", "args": ["src/runner.node.mjs"], "cwd": "${workspaceFolder}/packages/bun-internal-test", - "console": "internalConsole" - } + "console": "internalConsole", + }, ], "inputs": [ { "id": "commandLine", "type": "promptString", - "description": "Usage: bun [...]" + "description": "Usage: bun [...]", }, { "id": "testName", "type": "promptString", - "description": "Usage: bun test [...]" - } - ] + "description": "Usage: bun test [...]", + }, + ], } diff --git a/.vscode/settings.json b/.vscode/settings.json index e0d404062f..4961329465 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,7 +13,7 @@ "node_modules": true, ".git": true, "src/bun.js/WebKit": true, - "src/deps/*/**": true + "src/deps/*/**": true, }, "search.followSymlinks": false, "search.useIgnoreFiles": true, @@ -34,7 +34,7 @@ "[zig]": { "editor.tabSize": 4, "editor.useTabStops": false, - "editor.defaultFormatter": "ziglang.vscode-zig" + "editor.defaultFormatter": "ziglang.vscode-zig", }, // C++ @@ -42,41 +42,41 @@ "cmake.configureOnOpen": false, "C_Cpp.errorSquiggles": "enabled", "[cpp]": { - "editor.defaultFormatter": "xaver.clang-format" + "editor.defaultFormatter": "xaver.clang-format", }, "[c]": { - "editor.defaultFormatter": "xaver.clang-format" + "editor.defaultFormatter": "xaver.clang-format", }, "[h]": { - "editor.defaultFormatter": "xaver.clang-format" + "editor.defaultFormatter": "xaver.clang-format", }, // JavaScript "prettier.enable": true, - "prettier.configPath": "${workspaceFolder}/.prettierrc", + "prettier.configPath": ".prettierrc", "eslint.workingDirectories": ["${workspaceFolder}/packages/bun-types"], "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[javascriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, // TypeScript "typescript.tsdk": "${workspaceFolder}/node_modules/typescript/lib", "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, // JSON "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, // Markdown @@ -89,23 +89,23 @@ "editor.quickSuggestions": { "comments": "off", "strings": "off", - "other": "off" - } + "other": "off", + }, }, // TOML "[toml]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, // YAML "[yaml]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", }, // Docker "[dockerfile]": { - "editor.formatOnSave": false + "editor.formatOnSave": false, }, // Files @@ -122,7 +122,7 @@ "**/*.i": true, }, "files.associations": { - "*.idl": "cpp" + "*.idl": "cpp", }, "C_Cpp.files.exclude": { "**/.vscode": true, @@ -140,6 +140,6 @@ "WebKit/WebCore": true, "WebKit/WebDriver": true, "WebKit/WebKitBuild": true, - "WebKit/WebInspectorUI": true - } + "WebKit/WebInspectorUI": true, + }, } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cec77199e5..faf1dc0d22 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,13 +6,13 @@ "label": "Install Dependencies", "command": "scripts/all-dependencies.sh", "windows": { - "command": "scripts/all-dependencies.ps1" + "command": "scripts/all-dependencies.ps1", }, "icon": { - "id": "arrow-down" + "id": "arrow-down", }, "options": { - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", }, }, { @@ -21,13 +21,13 @@ "dependsOn": ["Install Dependencies"], "command": "scripts/setup.sh", "windows": { - "command": "scripts/setup.ps1" + "command": "scripts/setup.ps1", }, "icon": { - "id": "check" + "id": "check", }, "options": { - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", }, }, { @@ -37,10 +37,10 @@ "command": "bun", "args": ["run", "build"], "icon": { - "id": "gear" + "id": "gear", }, "options": { - "cwd": "${workspaceFolder}" + "cwd": "${workspaceFolder}", }, "isBuildCommand": true, "runOptions": { @@ -48,5 +48,5 @@ "reevaluateOnRerun": true, }, }, - ] + ], }