We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03f1e4e commit c34c9faCopy full SHA for c34c9fa
1 file changed
extensions/ql-vscode/src/sarif-utils.ts
@@ -1,5 +1,4 @@
1
import * as Sarif from 'sarif';
2
-import * as path from 'path';
3
import { ResolvableLocationValue } from './bqrs-cli-types';
4
5
export interface SarifLink {
@@ -74,9 +73,7 @@ export function getPathRelativeToSourceLocationPrefix(
74
73
sarifRelativeUri: string
75
) {
76
const normalizedSourceLocationPrefix = sourceLocationPrefix.replace(/\\/g, '/');
77
- return `file:${
78
- path.join(normalizedSourceLocationPrefix, sarifRelativeUri)
79
- }`;
+ return `file:${normalizedSourceLocationPrefix}/${sarifRelativeUri}`;
80
}
81
82
export function parseSarifLocation(
0 commit comments