Skip to content

Commit

Permalink
add ref descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Dec 27, 2024
1 parent 0e88d5d commit e4806f8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion vscode/src/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ export async function initProjectCreator(context: vscode.ExtensionContext) {
)!;

const versionChoice = await vscode.window.showQuickPick(
chosenPackage.dependency.github.refs,
chosenPackage.dependency.github.refs.map(({ ref, notes }) => ({
label: ref,
description: notes,
})),
{ placeHolder: "Pick a version to import" },
);

Expand Down
20 changes: 16 additions & 4 deletions vscode/src/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"refs": ["546b053"],
"refs": [
{ "ref": "546b053", "notes": "latest stable" },
{ "ref": "main", "notes": "nightly, unstable" }
],
"path": "library/signed"
}
}
Expand All @@ -19,7 +22,10 @@
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"refs": ["546b053"],
"refs": [
{ "ref": "546b053", "notes": "latest stable" },
{ "ref": "main", "notes": "nightly, unstable" }
],
"path": "library/signed"
}
}
Expand All @@ -31,7 +37,10 @@
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"refs": ["546b053"],
"refs": [
{ "ref": "546b053", "notes": "latest stable" },
{ "ref": "main", "notes": "nightly, unstable" }
],
"path": "library/rotations"
}
}
Expand All @@ -43,7 +52,10 @@
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"refs": ["546b053"],
"refs": [
{ "ref": "546b053", "notes": "latest stable" },
{ "ref": "main", "notes": "nightly, unstable" }
],
"path": "library/qtest"
}
}
Expand Down

0 comments on commit e4806f8

Please sign in to comment.