Skip to content

Commit

Permalink
Fix #745
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Aug 14, 2022
1 parent c89f088 commit bc36db0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes

# 1.7.4

## Fixed
- #745: Bug: didn't catch panics in Rust code

# 1.7.3

## Fixed
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(CodeLLDB)
enable_testing()

set(VERSION "1.7.3") # Base version
set(VERSION "1.7.4") # Base version

include(cmake/CopyFiles.cmake)

Expand Down
9 changes: 5 additions & 4 deletions extension/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ class Extension implements DebugConfigurationProvider, DebugAdapterDescriptorFac
}

launchConfig._adapterSettings = this.getAdapterSettings();
if (launchConfig.sourceLanguages) {
launchConfig._adapterSettings.sourceLanguages = launchConfig.sourceLanguages;
delete launchConfig.sourceLanguages;
}

output.appendLine(`Resolved debug configuration: ${inspect(launchConfig)}`);
return launchConfig;
Expand All @@ -423,6 +419,11 @@ class Extension implements DebugConfigurationProvider, DebugAdapterDescriptorFac
evaluateForHovers: settings.evaluateForHovers,
commandCompletions: settings.commandCompletions,
};
if (session.configuration.sourceLanguages) {
adapterParams.sourceLanguages = session.configuration.sourceLanguages;
delete session.configuration.sourceLanguages;
}

let connector = new ReverseAdapterConnector();
let port = await connector.listen();

Expand Down

0 comments on commit bc36db0

Please sign in to comment.