This commit is contained in:
Isaac 2026-02-23 11:19:09 +01:00
parent 45e8661802
commit 4d4fcdd17f
10 changed files with 16 additions and 942 deletions

31
.vscode/launch.json vendored
View file

@ -1,31 +0,0 @@
{
"configurations": [
{
"name": "Debug Telegram",
"type": "lldb-dap",
"request": "attach",
"preLaunchTask": "_launch_telegram",
"debuggerRoot": "${workspaceFolder}",
"attachCommands": [
"process connect connect://localhost:6667"
],
"internalConsoleOptions": "openOnSessionStart",
"timeout": 1000
},
{
"name": "Restart Debug Telegram",
"type": "lldb-dap",
"request": "attach",
"preLaunchTask": "Restart Telegram Debug",
"debuggerRoot": "${workspaceFolder}",
"attachCommands": [
"process connect connect://localhost:6667"
],
"internalConsoleOptions": "openOnSessionStart",
"timeout": 1000
},
],
"options": {
"console": "integratedTerminal",
}
}

View file

@ -1,4 +1,7 @@
{
"swift.disableSwiftPackageManagerIntegration": true,
"swift.autoGenerateLaunchConfigurations": false,
"swift.disableAutoResolve": true,
"search.followSymlinks": false,
"files.exclude": {
".git/**": true
@ -22,5 +25,5 @@
]
}
},
"swift.sourcekit-lsp.serverPath": "${workspaceFolder}/build-input/sourcekit-lsp",
"swift.sourcekit-lsp.serverPath": "${workspace}/build-input/sourcekit-lsp"
}

101
.vscode/tasks.json vendored
View file

@ -1,101 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Telegram",
"type": "shell",
"command": "${workspaceFolder}/build-input/bazel-8.4.2-darwin-arm64",
"args": [
"build",
"Telegram/Telegram",
"--features=swift.use_global_module_cache",
"--verbose_failures",
"--remote_cache_async",
"--features=swift.skip_function_bodies_for_derived_files",
"--jobs=16",
"--define=buildNumber=10000",
"--define=telegramVersion=12.2.2",
"--disk_cache=${HOME}/telegram-bazel-cache",
"-c",
"dbg",
"--ios_multi_cpus=sim_arm64",
"--watchos_cpus=arm64_32",
"--features=swift.enable_batch_mode"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"runOptions": {
"instanceLimit": 1
}
},
// Hidden never-ending task that handles the launch / debugging bits for Cmd+Shift+D.
// The problemMatcher field defines when the task is effectively ready to be debugged
// by the attach task in launch.json.
{
"label": "_launch_telegram",
"type": "shell",
"command": "./scripts/launch_and_debug.sh",
"presentation": {
"reveal": "always"
},
"hide": true,
"isBackground": true,
"problemMatcher": [
{
"pattern": [
{
"regexp": "\\b\\B",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "^.*Building....*",
"endsPattern": "^.*Listening to port 6667 for a connection from .*"
}
}
],
"runOptions": {
"instanceLimit": 1
}
},
{
"label": "Stream SourceKitBazelBSP Logs",
"type": "shell",
"command": "log stream --process sourcekit-bazel-bsp --debug",
"problemMatcher": [],
"isBackground": false,
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
},
{
"label": "Stop Telegram Debug Session",
"type": "shell",
"command": "pkill -f 'launch_and_debug.sh' || true; lsof -ti:6667 | xargs kill -9 2>/dev/null || true",
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"close": true
}
},
{
"label": "Restart Telegram Debug",
"dependsOrder": "sequence",
"dependsOn": [
"Stop Telegram Debug Session",
"_launch_telegram"
],
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
}
]
}