We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.pkg
1 parent 421ea58 commit e89467cCopy full SHA for e89467c
src/utils/index.ts
@@ -238,7 +238,13 @@ export function getServerName(uri: vscode.Uri): string {
238
return uri.path;
239
} else {
240
// Complex case: replace folder slashes with dots.
241
- return uri.path.slice(1).replace(/\//g, ".");
+ const filePath = uri.path.slice(1);
242
+ let serverName = filePath.replace(/\//g, ".");
243
+ if (!filePath.split("/").pop().includes(".")) {
244
+ // This is a package so add the .PKG extension
245
+ serverName += ".PKG";
246
+ }
247
+ return serverName;
248
}
249
250
0 commit comments