Fixes crashes due to force-unwrapping the packageName variable when processing a completion. This is never getting set because the doWorkspaceDidChangeConfiguration() method is throwing when it fails to load the toolchainPathhere.
This is looking for settings at settings["swift-langsrvr"], but it appears it is being sent settings["swift"]. I didn't see anywhere else this key was defined, so I'm assuming it's supposed to match the package.json config here - https://github.com/owensd/vscode-swift/blob/master/package.json#L60
Fixes crashes due to force-unwrapping the
packageName
variable when processing a completion. This is never getting set because thedoWorkspaceDidChangeConfiguration()
method is throwing when it fails to load thetoolchainPath
here.This is looking for settings at
settings["swift-langsrvr"]
, but it appears it is being sentsettings["swift"]
. I didn't see anywhere else this key was defined, so I'm assuming it's supposed to match thepackage.json
config here - https://github.com/owensd/vscode-swift/blob/master/package.json#L60