-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Windows support #8809
Closed
Closed
Better Windows support #8809
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
5cbc0e7
build target add
JunkuiZhang ebf3943
terminal fix
JunkuiZhang d4daee3
rename to cross_platfrom
JunkuiZhang a8e8225
basic impl
JunkuiZhang 4e2af69
fix build on wsl
JunkuiZhang 0d3ea37
fix build on linux
JunkuiZhang f0e58cc
draw window every 16ms
JunkuiZhang 47aa507
better error
JunkuiZhang ab57500
fix cursor
JunkuiZhang 305b3ea
mouse hwheel
JunkuiZhang e002a03
scale factor issue
JunkuiZhang d5427ff
temp fix on scale factor
JunkuiZhang 832a825
fix clipboard
JunkuiZhang b3715f7
update clipboard
JunkuiZhang 5ed1a6c
update read clipboard fn
JunkuiZhang 80e2690
refine error handling
JunkuiZhang 5f646ce
some cleanup
JunkuiZhang 475255e
disable mouse leave event
JunkuiZhang 95a418a
fix ime
JunkuiZhang c791e4c
small fix
JunkuiZhang d875469
remove unused
JunkuiZhang 6eaa7f1
update shortcuts
JunkuiZhang 7176433
destroy accel
JunkuiZhang b86caf1
credential stuff
JunkuiZhang 2259868
small fix
JunkuiZhang 5213f4a
small fix
JunkuiZhang 6460099
revoke terminal change
JunkuiZhang f03226a
fix error
JunkuiZhang 2925897
fix typo
JunkuiZhang 6514fe5
fix build on linux
JunkuiZhang 38327bb
use workspace windows crate
JunkuiZhang c36b2ab
fix fs
JunkuiZhang 2756425
fix a crash
JunkuiZhang c2a1a28
remove extra deps
JunkuiZhang 423e1d3
run cargo clippy
JunkuiZhang 0a8739a
fix typo
JunkuiZhang 0a125e6
fix mac imports
JunkuiZhang 01cdc70
fix typo
JunkuiZhang d163ba4
need a deeper look into the `input()` and `input_handler()` functions
JunkuiZhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependency> | ||
<dependentAssembly> | ||
<assemblyIdentity type='win32' | ||
name='Microsoft.Windows.Common-Controls' | ||
version='6.0.0.0' processorArchitecture='*' | ||
publicKeyToken='6595b64144ccf1df' /> | ||
</dependentAssembly> | ||
</dependency> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
crates/gpui/src/platform/blade.rs → crates/gpui/src/platform/cross_platform.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
mod blade_atlas; | ||
mod blade_belt; | ||
mod blade_renderer; | ||
#[cfg(not(feature = "macos-blade"))] | ||
mod text_system; | ||
|
||
pub(crate) use blade_atlas::*; | ||
pub(crate) use blade_renderer::*; | ||
#[cfg(not(feature = "macos-blade"))] | ||
pub(crate) use text_system::*; | ||
|
||
use blade_belt::*; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: The
rust-toolchain.toml
file mandates the Rust version of1.76
, which is incidentally the first version to restrict official Windows support to Windows 10 and Windows 11.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually is news to me. Additionally, the
alacritty_terminal
dependency that Zed relies on is implemented through conPTY API on Windows, while this API is only supported starting from the Windows 10 Fall 2018 update. So, I guess these users will also be left behind..?