mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-17 02:51:47 -05:00
Changes config name to insiders
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
## Release Notes
|
## Release Notes
|
||||||
|
|
||||||
### 2.13.0
|
### 2.13.0
|
||||||
- Adds experimental support for `Open in GitHub` to the relevant quick picks -- need to enable it via `"gitlens.experimental.openInRemote": true`
|
- Adds experimental support for `Open in GitHub` to the relevant quick picks -- need to enable it via `"gitlens.insiders": true`
|
||||||
- Adds an update notification for feature releases
|
- Adds an update notification for feature releases
|
||||||
- Adds `Show Branch History` command (`gitlens.showQuickBranchHistory`) to show the history of the selected branch
|
- Adds `Show Branch History` command (`gitlens.showQuickBranchHistory`) to show the history of the selected branch
|
||||||
- Adds `Show Last Opened Quick Pick` command (`gitlens.showLastQuickPick`) to re-open the previously opened quick pick - helps to get back to previous context
|
- Adds `Show Last Opened Quick Pick` command (`gitlens.showLastQuickPick`) to re-open the previously opened quick pick - helps to get back to previous context
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -351,10 +351,10 @@
|
|||||||
"default": false,
|
"default": false,
|
||||||
"description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
|
"description": "Specifies whether or not to toggle whitespace off then showing blame annotations (*may* be required by certain fonts/themes)"
|
||||||
},
|
},
|
||||||
"gitlens.experimental.openInRemote": {
|
"gitlens.insiders": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"description": "(experimental) Specifies whether or not to show Open X in Remote commands in relevant quick picks"
|
"description": "Specifies whether or not to enable new experimental features (expect there to be issues)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -585,11 +585,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.openCommitInRemote",
|
"command": "gitlens.openCommitInRemote",
|
||||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.experimental.openInRemote"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.insiders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.openFileInRemote",
|
"command": "gitlens.openFileInRemote",
|
||||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.experimental.openInRemote"
|
"when": "editorTextFocus && gitlens:enabled && config.gitlens.insiders"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"explorer/context": [
|
"explorer/context": [
|
||||||
@@ -600,7 +600,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.openFileInRemote",
|
"command": "gitlens.openFileInRemote",
|
||||||
"when": "gitlens:enabled && config.gitlens.experimental.openInRemote",
|
"when": "gitlens:enabled && config.gitlens.insiders",
|
||||||
"group": "gitlens@2"
|
"group": "gitlens@2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -123,14 +123,10 @@ export interface IAdvancedConfig {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IExperimentalConfig {
|
|
||||||
openInRemote: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IConfig {
|
export interface IConfig {
|
||||||
blame: IBlameConfig;
|
blame: IBlameConfig;
|
||||||
codeLens: ICodeLensesConfig;
|
codeLens: ICodeLensesConfig;
|
||||||
experimental: IExperimentalConfig;
|
|
||||||
statusBar: IStatusBarConfig;
|
statusBar: IStatusBarConfig;
|
||||||
advanced: IAdvancedConfig;
|
advanced: IAdvancedConfig;
|
||||||
|
insiders: boolean;
|
||||||
}
|
}
|
||||||
@@ -587,7 +587,7 @@ export class GitService extends Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getRemotes(repoPath: string): Promise<GitRemote[]> {
|
async getRemotes(repoPath: string): Promise<GitRemote[]> {
|
||||||
if (!this.config.experimental || !this.config.experimental.openInRemote) return Promise.resolve([]);
|
if (!this.config.insiders) return Promise.resolve([]);
|
||||||
|
|
||||||
Logger.log(`getRemotes('${repoPath}')`);
|
Logger.log(`getRemotes('${repoPath}')`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user