Skip to content

Commit

Permalink
fixup! tests and readd dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Feb 21, 2020
1 parent aabb820 commit 048d15d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
"extensionKind": [
"workspace"
],
"extensionDependencies": [
"ms-vscode.js-debug-companion"
],
"contributes": {
"views": {
"debug": [
Expand Down
5 changes: 3 additions & 2 deletions src/targets/sourcePathResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
isDataUri,
isFileUrl,
isValidUrl,
isAbsolute,
} from '../common/urlUtils';
import { LogTag, ILogger } from '../common/logging';
import { ISourceMapMetadata } from '../common/sourceMaps/sourceMap';
Expand Down Expand Up @@ -46,8 +47,8 @@ export abstract class SourcePathResolverBase<T extends ISourcePathResolverOption
private readonly resolveLocations = this.options.resolveSourceMapLocations?.map(location => {
const prefix = location.startsWith('!') ? '!' : '';
const remaining = location.slice(prefix.length);
if (path.isAbsolute(remaining)) {
return prefix + path.resolve(remaining);
if (isAbsolute(remaining)) {
return prefix + properResolve(remaining);
}

return location;
Expand Down

0 comments on commit 048d15d

Please sign in to comment.