This commit is contained in:
Isaac 2026-02-24 10:57:32 +01:00
parent 4f517ed01f
commit d52e4d9b62
14 changed files with 555 additions and 182 deletions

19
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
"configurations": [
{
"name": "Debug Telegram",
"type": "lldb-dap",
"request": "attach",
"preLaunchTask": "_launch_telegram",
"debuggerRoot": "${workspaceFolder}",
"attachCommands": [
"command script import '${workspaceFolder}/scripts/lldb_attach.py'"
],
"terminateCommands": [
"command script import '${workspaceFolder}/scripts/lldb_kill_app.py'"
],
"internalConsoleOptions": "openOnSessionStart",
"timeout": 9999
}
]
}

View file

@ -12,8 +12,6 @@
"search.exclude": {
".git/**": true
},
"files.associations": {
},
"swift.sourcekit-lsp.backgroundIndexing": "on",
"swift.sourcekit-lsp.trace.server": "messages",
"terminal.integrated.profiles.osx": {
@ -25,5 +23,5 @@
]
}
},
"swift.sourcekit-lsp.serverPath": "${workspace}/build-input/sourcekit-lsp"
"swift.sourcekit-lsp.serverPath": "${workspaceFolder}/build-input/sourcekit-lsp"
}

110
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,110 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Select Simulator for Apple Development",
"type": "shell",
"command": "./scripts/select_simulator.sh",
"presentation": {
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": []
},
{
"label": "Build Telegram",
"type": "shell",
"command": "./scripts/lldb_build.sh",
"options": {
"env": {
"BAZEL_LABEL_TO_RUN": "//Telegram:Telegram",
"BAZEL_EXTRA_BUILD_FLAGS": ""
}
},
"group": {
"kind": "build"
},
"problemMatcher": [
{
"owner": "bazel",
"source": "bazel",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(error|warning|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
]
},
{
"label": "_launch_telegram",
"type": "shell",
"command": "./scripts/lldb_launch_and_debug.sh",
"options": {
"env": {
"BAZEL_LABEL_TO_RUN": "//Telegram:Telegram",
"BAZEL_EXTRA_BUILD_FLAGS": "",
"BAZEL_LAUNCH_ARGS": ""
}
},
"presentation": {
"reveal": "always"
},
"hide": true,
"isBackground": true,
"problemMatcher": [
{
"owner": "bazel",
"source": "bazel",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "launcher_error in (.*): (.*)",
"kind": "file",
"file": 1,
"message": 2
},
"background": {
"activeOnStart": true,
"beginsPattern": "^Starting launch task\\.\\.\\.$",
"endsPattern": "^ph.telegra.Telegraph: .*"
}
},
{
"owner": "bazel",
"source": "bazel",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.+?):(\\d+):(\\d+):\\s+(error|warning|note):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
},
"background": {
"activeOnStart": true,
"beginsPattern": "^Starting launch task\\.\\.\\.$",
"endsPattern": "^ph.telegra.Telegraph: .*"
}
}
],
"runOptions": {
"instanceLimit": 1
}
}
]
}