{"id":15594216,"url":"https://github.com/orta/vscode-playdate","last_synced_at":"2025-04-30T12:29:24.031Z","repository":{"id":37326567,"uuid":"266084210","full_name":"orta/vscode-playdate","owner":"orta","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-01T12:33:31.000Z","size":249,"stargazers_count":54,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T16:04:33.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T10:34:01.000Z","updated_at":"2024-08-27T23:36:47.000Z","dependencies_parsed_at":"2024-11-20T10:41:38.514Z","dependency_job_id":null,"html_url":"https://github.com/orta/vscode-playdate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fvscode-playdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fvscode-playdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fvscode-playdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orta%2Fvscode-playdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orta","download_url":"https://codeload.github.com/orta/vscode-playdate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231590361,"owners_count":18396926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T00:35:19.109Z","updated_at":"2024-12-28T05:57:50.252Z","avatar_url":"https://github.com/orta.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Playdate\n\nAdds a custom command to compile your code and run it in the [Playdate\nSimulator](https://play.date/dev/).\n\n![screenshot](./screenshots/desktop.jpeg)\n\n## Getting Set Up\n\nSince this plugin will need to access both `pdc` (the Playdate compiler) and the\nactual simulator which is bundled in the SDK the plugin needs to be able to\ndetermine where that is installed.\n\nEither configure your environment variable `PLAYDATE_SDK_PATH` (will always\ntake precedence) or add it in the settings/launch config. While in the settings\nit's also a good idea to add the Lua workspace libraries:\n\n```json\n{\n  \"Lua.workspace.library\": [\n    \"/path/to/PlaydateSDK/CoreLibs\"\n  ]\n}\n```\n\n## Command palette\n\n![command palette](./screenshots/command_palette.png)\n\nTo compile and run your code in the simulator through the command palette, hit\n`Cmd + Shift + P` on Mac or `Ctrl + Shift + P` on Windows/Linux and look for\n_\"Run app in Playdate simulator\"_.\n\nBy default, the plugin will use `source` as source argument and `output.pdx` as\noutput argument (**note**, these are case sensitive). If you want to use a\ndifferent source or output, add the following to `settings.json`:\n\n```json\n{\n  \"playdate.source\": \"Source\",\n  \"playdate.output\": \"Output.pdx\",\n  // Optionally set sdkPath if not PLAYDATE_SDK_PATH is configured.\n  // \"playdate.sdkPath\": \"/path/to/PlaydateSDK\"\n}\n```\n\nThey will both be _relative_ to the workspace root.\n\n## Run as debugger\n\nThis plugin can also be configured to run as a debugger and launch the\nsimulator by hitting `F5` (or your configured key). To use it this way create\nthe following `.vscode/launch.json`:\n\n```json\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"request\": \"launch\",\n      \"type\": \"playdate\",\n      \"name\": \"Run app in Playdate simulator\",\n      \"source\": \"${workspaceRoot}/source\",\n      \"output\": \"${workspaceRoot}/output.pdx\",\n      // Optionally set sdkPath if not PLAYDATE_SDK_PATH is configured.\n      // \"sdkPath\": \"/path/to/PlaydateSDK\"\n    }\n  ]\n}\n```\n\n### Notes\n\nThe playdate version of Lua has a few extras:\n\n- The `import` function\n- `+=` and `-=`\n\nTo make VS Code not mark these as invalid syntax you can add the following to your `settings.json`:\n\n```json\n\"Lua.runtime.nonstandardSymbol\": [\n  \"+=\",\n  \"-=\",\n  \"*=\",\n  \"/=\"\n],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Fvscode-playdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forta%2Fvscode-playdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forta%2Fvscode-playdate/lists"}