Skip to content

Package names passed to source control / server command extensions are missing .pkg extension #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
isc-svelury opened this issue Nov 17, 2021 · 2 comments · Fixed by #776
Assignees
Labels
bug Something isn't working

Comments

@isc-svelury
Copy link

Unlike Studio, names of packages selected by users in the explorer view are not passed with the .pkg extension in VS Code. This creates inconsistencies and failures in VS Code. Our current workaround for this is to check if the package has any classes and explicitly add the extension if it does. This will not work if the package has no classes.

Also see: this git-source-control hooks issue

@timleavitt

@isc-bsaviano
Copy link
Contributor

@isc-svelury Do you mean the ObjectScript Explorer or the regular file explorer set up to use isfs? I verified that when clicking on a package node in the ObjectScript Explorer, .PKG is added to the end of the name:

} else if (uriOrNode) {
const node: NodeBase = uriOrNode;
this.api = new AtelierAPI();
this.name = node instanceof PackageNode ? node.fullName + ".PKG" : node.fullName;
} else {

@isc-tleavitt
Copy link

@isc-bsaviano good question - this would be the regular file explorer set up to use isfs.

@isc-bsaviano isc-bsaviano changed the title Inconsistency with Studio behavior with packages in explorer view as passed to source control / server command extensions Package names passed to source control / server command extensions are missing .pkg extension Nov 18, 2021
@isc-bsaviano isc-bsaviano self-assigned this Nov 18, 2021
@isc-bsaviano isc-bsaviano added the bug Something isn't working label Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants