Skip to content

Conversation

@MarcoCarnevali
Copy link
Collaborator

This PR changes the response of the WorkspaceClient getFiles() API. Instead of returning an array of files it now returns a Combine Publisher which publish the list of files anytime there is a change on the directory. This is useful so that the sidebar is always up-to-date with the selected directory.

Screen.Recording.2022-03-17.at.08.55.52.mov

@austincondiff
Copy link
Collaborator

Please fix merge conflicts. Great work!

@MarcoCarnevali MarcoCarnevali force-pushed the feature/directory-publisher branch from 75a9066 to 3abb4dc Compare March 17, 2022 16:43
@austincondiff
Copy link
Collaborator

We are again out of sync due to a fix needing to be merged in

@MarcoCarnevali MarcoCarnevali force-pushed the feature/directory-publisher branch 2 times, most recently from 0feb8ef to afaf0ff Compare March 17, 2022 20:13
@MarcoCarnevali MarcoCarnevali force-pushed the feature/directory-publisher branch from afaf0ff to 2b6b7af Compare March 17, 2022 20:17
@austincondiff austincondiff merged commit d4d14bf into CodeEditApp:main Mar 17, 2022
lukepistrol pushed a commit to lukepistrol/CodeEdit that referenced this pull request Mar 17, 2022
xinix909 pushed a commit to xinix909/CodeTransfer that referenced this pull request Sep 7, 2024
…odeEditApp#696) (CodeEditApp#144)

# Description

<!--- REQUIRED: Describe what changed in detail -->

* In `STTextViewController.swift`, the `setCursorPosition` function was
changed so that, if the currently open file is empty, the cursor is
automatically set to the first position and active. This behavior is
similar to other text editors e.g. VSCode.

A related PR is opened in CodeEdit, which works in tandem with this one,
so that newly-created files automatically open in a new editor tab.

# Related Issue

<!--- REQUIRED: Tag all related issues (e.g. * CodeEditApp#23) -->
* [CodeEditApp#696](CodeEditApp#696) from
CodeEdit.
* PR [CodeEditApp#1057](CodeEditApp#1057) from
CodeEdit.

# Checklist

<!--- Add things that are not yet implemented above -->
- [x] I read and understood the [contributing
guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md)
as well as the [code of
conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] I documented my code
- [x] Review requested

# Screenshots
xinix909 pushed a commit to xinix909/CodeTransfer that referenced this pull request Sep 7, 2024
…pp#23)

### Description

- Reduces text drawing artifacts by turning off font smoothing, enabling subpixel positioning and font quantization, and a hidden smoothing API.
- Adds an internal ObjC target to accomplish the previous point.
- Fixes a layout bug where layout bounds would be nearly infinite due to the view being told to lay out but not be in the view hierarchy yet, causing a hang and memory explosion as every line in a potentially large document is laid out and rendered.
- Fixes a small bug with the undo manager's grouping behavior and makes it public (for a fix in CESE for undo-redo related bugs), as well as reordering some notifications in the undo manager.

### Related Issues

* N/A

### Checklist

- [x] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md)
- [x] The issues this PR addresses are related to each other
- [x] My changes generate no new warnings
- [x] My code builds and runs on my machine
- [x] My changes are all related to the related issue above
- [x] I documented my code

### Screenshots

Before:
<img width="314" alt="Screenshot 2024-02-12 at 2 03 35 PM" src="https://github.com/CodeEditApp/CodeEditTextView/assets/35942988/b4f3b3ae-0eb7-4e0b-bde8-df0b7c8fcc65">

After (left CE, right Xcode):
![Screenshot 2024-02-13 at 2 23 36 PM](https://github.com/CodeEditApp/CodeEditTextView/assets/35942988/39d5fdce-cc3e-4dfd-94ea-4f571c6f3c27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants