Skip to content

support platform-specific editors, revisit docs - #3038

Merged
joshaber merged 9 commits into
masterfrom
make-editors-platform-specific
Oct 16, 2017
Merged

joshaber merged 9 commits into
masterfrom
make-editors-platform-specific

Conversation

@shiftkey

@shiftkey shiftkey commented Oct 13, 2017 •

Copy link
Copy Markdown
Member

After testing #2941 and reading over how we made shells platform specific I've incorporated that work into making our editors more flexible, so we can support different scenarios.

This covers a few things:

  • decouple the existing code from the assumption that we're using cross-platform
  • rewrite the docs so they explain how to integrate, using the code itself
    • Windows
    • macOS
    • Linux
  • stub out the linux interface, if someone wants to have a go at starting that off
  • can we 🔥 LookupResult and simplify this code further, so it looks more like the Editor lookup?
  • cleanup docs again

@shiftkey

Copy link
Copy Markdown
Member Author

Tested this again on macOS and Windows (switching editors and launching too). All seems fine.

@joshaber joshaber left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨


The technical details around this list are outlined below, and differ slightly
based on the platform.
### My favourite editor XYZ isn't supported!

This comment was marked as spam.

This comment was marked as spam.


If you want to add another editor, add a new key to the `ExternalEditor`
enum with a friendly name for the value. This will trigger a number of compiler
errors, which are places in the module you need to add code.

This comment was marked as spam.

@joshaber
joshaber merged commit 94881c3 into master Oct 16, 2017
@joshaber
joshaber deleted the make-editors-platform-specific branch October 16, 2017 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants