mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-27 07:10:30 -04:00
Merge from vscode merge-base (#22780)
* Revert "Revert "Merge from vscode merge-base (#22769)" (#22779)"
This reverts commit 47a1745180.
* Fix notebook download task
* Remove done call from extensions-ci
This commit is contained in:
@@ -21,7 +21,7 @@ export default class ServiceWrapper implements vscode.Disposable {
|
||||
|
||||
begin() {
|
||||
|
||||
let configuration = this.createExtensionConfiguration();
|
||||
const configuration = this.createExtensionConfiguration();
|
||||
const documentTracker = new DocumentTracker();
|
||||
|
||||
this.services.push(
|
||||
@@ -48,6 +48,19 @@ export default class ServiceWrapper implements vscode.Disposable {
|
||||
}
|
||||
|
||||
createExtensionConfiguration(): interfaces.IExtensionConfiguration {
|
||||
|
||||
// PRAGMATIC way to avoid conflicting with the new merge editor: when git opts into
|
||||
// using the merge editor we disable this extension - for the merge editor but also
|
||||
// for "other" editors
|
||||
const gitConfig = vscode.workspace.getConfiguration('git');
|
||||
if (gitConfig.get<boolean>('mergeEditor')) {
|
||||
return {
|
||||
enableCodeLens: false,
|
||||
enableDecorations: false,
|
||||
enableEditorOverview: false
|
||||
};
|
||||
}
|
||||
|
||||
const workspaceConfiguration = vscode.workspace.getConfiguration(ConfigurationSectionName);
|
||||
const codeLensEnabled: boolean = workspaceConfiguration.get('codeLens.enabled', true);
|
||||
const decoratorsEnabled: boolean = workspaceConfiguration.get('decorators.enabled', true);
|
||||
@@ -64,4 +77,3 @@ export default class ServiceWrapper implements vscode.Disposable {
|
||||
this.services = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user