Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Only support preview features
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Aug 16, 2020
1 parent 4e64155 commit 2a802e3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
"@octokit/rest": "^18.0.0",
"atob": "^2.1.2",
"btoa": "^1.2.1",
"github-actions-parser": "0.7.4",
"github-actions-parser": "^0.7.5",
"js-yaml": "^3.14.0",
"ssh-config": "^3.0.0",
"tunnel": "0.0.6",
Expand Down
7 changes: 7 additions & 0 deletions src/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ export async function updateOrgFeaturesEnabled(enabled: boolean) {
true
);
}

export function previewFeaturesEnabled(): boolean {
return getConfiguration().get<boolean>(
getSettingsKey("preview-features"),
false
);
}
21 changes: 8 additions & 13 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import * as vscode from "vscode";
import { enableOrgFeatures } from "./auth/auth";
import { initConfiguration } from "./configuration/configuration";
import {
initConfiguration,
previewFeaturesEnabled,
} from "./configuration/configuration";
import { getGitHubContext, GitHubContext } from "./git/repository";
import { LogScheme } from "./logs/constants";
import { WorkflowStepLogProvider } from "./logs/fileProvider";
Expand Down Expand Up @@ -437,17 +440,9 @@ export function activate(context: vscode.ExtensionContext) {
);

//
// Editing
// Editing features
//
// context.subscriptions.push(
// vscode.languages.registerCompletionItemProvider(
// {
// pattern: "**/.github/workflows/*.{yaml,yml}",
// },
// new SecretsCompletionItemProvider(),
// "."
// )
// );

init(context);
if (previewFeaturesEnabled()) {
init(context);
}
}

0 comments on commit 2a802e3

Please sign in to comment.