Skip to content

Commit ff37190

Browse files
authored
Merge pull request #728 from isc-bsaviano/master
Don't return ISFS URI with CSP query parameter if file is a class or routine
2 parents 1968a45 + 06c9778 commit ff37190

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/providers/DocumentContentProvider.ts

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ export class DocumentContentProvider implements vscode.TextDocumentContentProvid
6464
});
6565
vfs = true;
6666
scheme = wFolderUri.scheme;
67+
// If this is a class or routine, remove the CSP query param if it's present
68+
if (uri.query === "csp" && /cls|mac|int|inc/i.test(fileExt)) {
69+
uri = uri.with({
70+
query: "",
71+
});
72+
}
6773
} else {
6874
const conn = config("conn", workspaceFolder);
6975
const localFile = this.getAsFile(name, workspaceFolder);

0 commit comments

Comments
 (0)