Skip to content
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

Only change scheme of .swiftinterface files to readonly if old scheme was file #1276

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 13, 2024

I’m working on adding semantic functionality to generated interfaces in SourceKit-LSP and this will generate reference documents with a sourcekit-lsp: scheme and a .swiftinterface file. We shouldn’t change those URIs to a readonly scheme.

…heme was `file`

I’m working on adding semantic functionality to generated interfaces in SourceKit-LSP and this will generate reference documents with a `sourcekit-lsp:` scheme and a `.swiftinterface` file. We shouldn’t change those URIs to a `readonly` scheme.
@plemarquand
Copy link
Contributor

What happens if the user modifies the contents of a document with the sourcekit-lsp: scheme?

@ahoppen
Copy link
Member Author

ahoppen commented Dec 13, 2024

Non-file URL schemes are automatically marked as non-editable by VS Code (or at least the sourcekit-lsp scheme is).

@plemarquand plemarquand merged commit 57a6978 into swiftlang:main Dec 13, 2024
15 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