mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-22 17:39:19 +00:00
Fix breakpoints not triggering on Windows 10 (#55)
* fix-windows-breakpoint * perform a case-insensitve path search for packages * revert unnecessary changes to packages
This commit is contained in:
@@ -135,10 +135,10 @@
|
|||||||
"test": "node ./node_modules/vscode/bin/test"
|
"test": "node ./node_modules/vscode/bin/test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vscode-debugprotocol": "^1.32.0",
|
|
||||||
"vscode-debugadapter": "^1.32.0",
|
|
||||||
"long": "^4.0.0",
|
"long": "^4.0.0",
|
||||||
"uuid": "^3.3.2",
|
"uuid": "^3.3.2",
|
||||||
|
"vscode-debugadapter": "^1.32.0",
|
||||||
|
"vscode-debugprotocol": "^1.32.0",
|
||||||
"ws": "^1.1.1",
|
"ws": "^1.1.1",
|
||||||
"xmldom": "^0.1.27",
|
"xmldom": "^0.1.27",
|
||||||
"xpath": "^0.0.27"
|
"xpath": "^0.0.27"
|
||||||
|
|||||||
@@ -614,6 +614,14 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
if ((pkginfo = this.src_packages.packages[pkg]).package_path === srcfolder) break;
|
if ((pkginfo = this.src_packages.packages[pkg]).package_path === srcfolder) break;
|
||||||
pkginfo = null;
|
pkginfo = null;
|
||||||
}
|
}
|
||||||
|
// if we didn't find an exact path match, look for a case-insensitive match
|
||||||
|
if (!pkginfo) {
|
||||||
|
for (var pkg in this.src_packages.packages) {
|
||||||
|
if ((pkginfo = this.src_packages.packages[pkg]).package_path.localeCompare(srcfolder, undefined, { sensitivity: 'base' }) === 0) break;
|
||||||
|
pkginfo = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if it's not in our source packages, check if it's in the Android source file cache
|
// if it's not in our source packages, check if it's in the Android source file cache
|
||||||
if (!pkginfo && is_subpath_of(srcfpn, this._android_sources_path)) {
|
if (!pkginfo && is_subpath_of(srcfpn, this._android_sources_path)) {
|
||||||
// create a fake pkginfo to use to construct the bp
|
// create a fake pkginfo to use to construct the bp
|
||||||
|
|||||||
Reference in New Issue
Block a user