Skip to content

Commit

Permalink
Add support for v5.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed May 21, 2024
1 parent 3ea747e commit ef44b8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Universal.VSCode.psm1
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
function Install-UniversalModule {
param($Version)

if ($Version -contains "beta") {
Write-Warning "This feature is not supported for beta versions"
return
}

$Parameters = @{
Name = "Universal"
RequiredVersion = $Version
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const openConfigRemote = async (item: ConfigTreeItem | SampleFile) => {
}

const version = await Container.universal.getVersion();
if (version.startsWith("3") || version.startsWith("4")) {
if (version.startsWith("3") || version.startsWith("4") || version.startsWith("5")) {
const config = await Container.universal.getFileContent(item.fileName);

const directory = path.dirname(filePath);
Expand Down
2 changes: 1 addition & 1 deletion src/configuration-treeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ConfigTreeViewProvider implements vscode.TreeDataProvider<vscode.Tr
if (element == null) {
try {
var version = await Container.universal.getVersion();
if (version.startsWith("3") || version.startsWith("4")) {
if (version.startsWith("3") || version.startsWith("4") || version.startsWith("5")) {
const configs = await Container.universal.getFiles("");
var configTree: ConfigTreeItem[] = [];
configs.forEach(c => configTree.push(new ConfigTreeItem(c.name, c.fullName, c.isLeaf, c.content)));
Expand Down

0 comments on commit ef44b8c

Please sign in to comment.