Files
sourcekit-lsp/Sources/SourceKitLSP/SourceKitLSPServer.swift
Alex Hoppen f482982c47 Instead of returning an empty array in prepareTypeHierarchy, sourcekit-lsp should return nil
Eg. when requesting type hierarchy of a class when the project hasn’t been built, sourcekit-lsp returns an empty array. That causes VS Code to fail with very ambiguous error messages
- MISSING provider
- Cannot read properties of null (reading 'kind')

To work around this, instead of returning an empty array, return `nil` instead.

rdar://126228814
2024-04-16 11:25:56 -07:00

101 KiB