Skip to content

Update for EditorPlaceholder SPI changes in swift-syntax #1746

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

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Oct 9, 2024

Use RawEditorPlaceholderData(syntaxText:) and primarily use RawEditorPlaceholderData.typeForExpansionText

Update for swiftlang/swift-syntax#2878

@rintaro
Copy link
Member Author

rintaro commented Oct 9, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test

@rintaro rintaro force-pushed the raw-editor-placeholder branch from be9424b to c6f3315 Compare October 10, 2024 01:57
@rintaro
Copy link
Member Author

rintaro commented Oct 10, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test

2 similar comments
@rintaro
Copy link
Member Author

rintaro commented Oct 10, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Oct 10, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test

fatalError("Unknown case")
#endif
/// Parse a SourceKit placeholder and extract the display name suitable for a
/// LSP placeholder.
Copy link
Member

Choose a reason for hiding this comment

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

LSP placeholders are called snippets.

Suggested change
/// LSP placeholder.
/// LSP snippets.

@rintaro rintaro force-pushed the raw-editor-placeholder branch from c6f3315 to 7add264 Compare October 10, 2024 18:44
@rintaro
Copy link
Member Author

rintaro commented Oct 10, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Oct 10, 2024

swiftlang/swift-syntax#2878
@swift-ci Please test Windows

@rintaro rintaro merged commit 5802aad into swiftlang:main Oct 11, 2024
3 checks passed
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