Skip to content

Commit

Permalink
Merge pull request #728 from isc-bsaviano/master
Browse files Browse the repository at this point in the history
Don't return ISFS URI with CSP query parameter if file is a class or routine
  • Loading branch information
isc-bsaviano authored Jul 27, 2021
2 parents 1968a45 + 06c9778 commit ff37190
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/DocumentContentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ export class DocumentContentProvider implements vscode.TextDocumentContentProvid
});
vfs = true;
scheme = wFolderUri.scheme;
// If this is a class or routine, remove the CSP query param if it's present
if (uri.query === "csp" && /cls|mac|int|inc/i.test(fileExt)) {
uri = uri.with({
query: "",
});
}
} else {
const conn = config("conn", workspaceFolder);
const localFile = this.getAsFile(name, workspaceFolder);
Expand Down

0 comments on commit ff37190

Please sign in to comment.