diff --git a/README.md b/README.md index 76d3b75..095d34c 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ To launch files, send requests to the server like the following: | Value | Editor | Linux | Windows | macOS | | --------------- | ---------------------------------------------------------------------- | :---: | :-----: | :---: | | `appcode` | [AppCode](https://www.jetbrains.com/objc/) | | | ✓ | +| `athas` | [Athas](https://athas.dev/) | ✓ | ✓ | ✓ | | `atom` | [Atom](https://atom.io/) | ✓ | ✓ | ✓ | | `atom-beta` | [Atom Beta](https://atom.io/beta) | | | ✓ | | `brackets` | [Brackets](http://brackets.io/) | ✓ | ✓ | ✓ | diff --git a/packages/launch-editor/editor-info/linux.js b/packages/launch-editor/editor-info/linux.js index c93614d..79f3e2d 100644 --- a/packages/launch-editor/editor-info/linux.js +++ b/packages/launch-editor/editor-info/linux.js @@ -27,4 +27,5 @@ module.exports = { rider: 'rider', 'rider.sh': 'rider', zed: 'zed', + athas: 'athas', } diff --git a/packages/launch-editor/editor-info/macos.js b/packages/launch-editor/editor-info/macos.js index 9a8875d..5949800 100644 --- a/packages/launch-editor/editor-info/macos.js +++ b/packages/launch-editor/editor-info/macos.js @@ -43,4 +43,6 @@ module.exports = { '/Applications/GoLand.app/Contents/MacOS/goland', '/Applications/Rider.app/Contents/MacOS/rider': '/Applications/Rider.app/Contents/MacOS/rider', '/Applications/Zed.app/Contents/MacOS/zed': 'zed', + '/Applications/Athas.app/Contents/MacOS/athas': + '/Applications/Athas.app/Contents/MacOS/athas', } diff --git a/packages/launch-editor/editor-info/windows.js b/packages/launch-editor/editor-info/windows.js index fc650a9..2196305 100644 --- a/packages/launch-editor/editor-info/windows.js +++ b/packages/launch-editor/editor-info/windows.js @@ -25,5 +25,6 @@ module.exports = [ 'rider64.exe', 'Trae.exe', 'zed.exe', + 'athas.exe', 'Antigravity.exe', ] diff --git a/packages/launch-editor/get-args.js b/packages/launch-editor/get-args.js index 13e7506..d68e074 100644 --- a/packages/launch-editor/get-args.js +++ b/packages/launch-editor/get-args.js @@ -34,6 +34,7 @@ module.exports = function getArgumentsForFile(editor, fileName, lineNumber, colu case 'wstorm': case 'charm': case 'zed': + case 'athas': return [`${fileName}:${lineNumber}:${columnNumber}`] case 'notepad++': return ['-n' + lineNumber, '-c' + columnNumber, fileName] diff --git a/packages/launch-editor/get-args.test.js b/packages/launch-editor/get-args.test.js index 395b86a..6962092 100644 --- a/packages/launch-editor/get-args.test.js +++ b/packages/launch-editor/get-args.test.js @@ -57,6 +57,7 @@ describe('getArgumentsForFile', () => { 'wstorm', 'charm', 'zed', + 'athas', ]) { test(`${editor} uses "file:line:column"`, () => { assert.deepEqual(getArgumentsForFile(editor, absoluteFileName, 10, 5), [