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

[SR-13762] SourceKit-LSP textDocument/* requests return no results if document is not open #529

Open
benlangmuir opened this issue Oct 21, 2020 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@benlangmuir
Copy link
Member

Previous ID SR-13762
Radar rdar://problem/70546468
Original Reporter @benlangmuir
Type Bug
Additional Detail from JIRA
Votes 0
Component/s SourceKit-LSP
Labels Bug
Assignee None
Priority Medium

md5: 90305bde26b3949654dd517a12e74963

Issue Description:

The "textDocument/*" requests such as completion, definition, references, documentSymbol, etc. will return a fallback value (e.g. [] for completion, nil for documentSymbol) when they are called on a document that has not been opened.

We should improve these to either return an error indicating what went wrong, or else support it by opening the file from disk.

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
@ahoppen ahoppen added StarterBug good first issue Good for newcomers and removed StarterBug labels Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants