未验证 提交 74d359ee 编写于 作者: F Fatih Acet

Add feature flag

上级 84cc4947
......@@ -219,6 +219,11 @@
"type": "boolean",
"default": true,
"description": "Enable the \"All Project Merge Requests\" sidebar pane"
},
"gitlab.enableExperimentalFeatures": {
"type": "boolean",
"default": false,
"description": "Enable experimental features including showing Issue details in VSCode"
}
}
}
......
......@@ -4,11 +4,13 @@ class SidebarTreeItem extends vscode.TreeItem {
constructor(title, data) {
super(title);
const { enableExperimentalFeatures } = vscode.workspace.getConfiguration('gitlab');
if (data) {
let command = 'gl.showRichContent';
let arg = data;
if (data.sha) {
if (data.sha || !enableExperimentalFeatures) {
command = 'vscode.open';
arg = vscode.Uri.parse(data.web_url);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册