mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 00:30:29 -04:00
normalize sql carbon tag (#14445)
This commit is contained in:
@@ -23,7 +23,7 @@ import { ConfigBasedRecommendations } from 'vs/workbench/contrib/extensions/brow
|
||||
import { StaticRecommendations } from 'sql/workbench/contrib/extensions/browser/staticRecommendations';
|
||||
import { ScenarioRecommendations } from 'sql/workbench/contrib/extensions/browser/scenarioRecommendations';
|
||||
import { IExtensionRecommendationNotificationService } from 'vs/platform/extensionRecommendations/common/extensionRecommendations';
|
||||
import { IExtensionRecommendation } from 'vs/workbench/services/extensionManagement/common/extensionManagement'; // {{ SQL CARBON EDIT }}
|
||||
import { IExtensionRecommendation } from 'vs/workbench/services/extensionManagement/common/extensionManagement'; // {{SQL CARBON EDIT}}
|
||||
|
||||
type IgnoreRecommendationClassification = {
|
||||
recommendationReason: { classification: 'SystemMetaData', purpose: 'FeatureInsight', isMeasurement: true };
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
/*RecentlyPublishedExtensionsAction, */ShowInstalledExtensionsAction, ShowOutdatedExtensionsAction, ShowDisabledExtensionsAction,
|
||||
ShowEnabledExtensionsAction, PredefinedExtensionFilterAction, RefreshExtensionsAction
|
||||
} from 'vs/workbench/contrib/extensions/browser/extensionsActions';
|
||||
import { OpenExtensionAuthoringDocsAction } from 'sql/workbench/contrib/extensions/browser/extensionsActions'; // {{ SQL CARBON EDIT }}
|
||||
import { OpenExtensionAuthoringDocsAction } from 'sql/workbench/contrib/extensions/browser/extensionsActions'; // {{SQL CARBON EDIT}}
|
||||
import { IExtensionManagementService, IExtensionGalleryService } from 'vs/platform/extensionManagement/common/extensionManagement';
|
||||
import { IWorkbenchExtensionEnablementService, IExtensionManagementServerService, IExtensionManagementServer } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
|
||||
import { ExtensionsInput } from 'vs/workbench/contrib/extensions/common/extensionsInput';
|
||||
|
||||
@@ -31,14 +31,14 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
|
||||
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
|
||||
import { ViewPane, IViewPaneOptions } from 'vs/workbench/browser/parts/views/viewPaneContainer';
|
||||
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
|
||||
import { coalesce, distinct, flatten } from 'vs/base/common/arrays'; // {{ SQL CARBON EDIT }}
|
||||
import { coalesce, distinct, flatten } from 'vs/base/common/arrays'; // {{SQL CARBON EDIT}}
|
||||
import { IExperimentService, IExperiment, ExperimentActionType } from 'vs/workbench/contrib/experiments/common/experimentService';
|
||||
import { alert } from 'vs/base/browser/ui/aria/aria';
|
||||
import { IListContextMenuEvent } from 'vs/base/browser/ui/list/list';
|
||||
import { createErrorWithActions } from 'vs/base/common/errorsWithActions';
|
||||
import { CancellationToken } from 'vs/base/common/cancellation';
|
||||
import { IAction, Action, Separator } from 'vs/base/common/actions';
|
||||
import { ExtensionIdentifier, ExtensionType, IExtensionDescription, isLanguagePackExtension } from 'vs/platform/extensions/common/extensions'; // {{ SQL CARBON EDIT }}
|
||||
import { ExtensionIdentifier, ExtensionType, IExtensionDescription, isLanguagePackExtension } from 'vs/platform/extensions/common/extensions'; // {{SQL CARBON EDIT}}
|
||||
import { CancelablePromise, createCancelablePromise } from 'vs/base/common/async';
|
||||
import { IProductService } from 'vs/platform/product/common/productService';
|
||||
import { SeverityIcon } from 'vs/platform/severityIcon/common/severityIcon';
|
||||
|
||||
@@ -244,13 +244,13 @@ registerAction2(class extends NotebookCellAction<ICellRange> {
|
||||
|
||||
getCellContextFromArgs(accessor: ServicesAccessor, context?: ICellRange): INotebookCellActionContext | undefined {
|
||||
if (!context || typeof context.start !== 'number' || typeof context.end !== 'number' || context.start >= context.end) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const activeEditorContext = this.getActiveEditorContext(accessor);
|
||||
|
||||
if (!activeEditorContext || !activeEditorContext.notebookEditor.viewModel || context.start >= activeEditorContext.notebookEditor.viewModel.viewCells.length) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const cells = activeEditorContext.notebookEditor.viewModel.viewCells;
|
||||
@@ -299,13 +299,13 @@ registerAction2(class extends NotebookCellAction<ICellRange> {
|
||||
|
||||
getCellContextFromArgs(accessor: ServicesAccessor, context?: ICellRange): INotebookCellActionContext | undefined {
|
||||
if (!context || typeof context.start !== 'number' || typeof context.end !== 'number' || context.start >= context.end) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const activeEditorContext = this.getActiveEditorContext(accessor);
|
||||
|
||||
if (!activeEditorContext || !activeEditorContext.notebookEditor.viewModel || context.start >= activeEditorContext.notebookEditor.viewModel.viewCells.length) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const cells = activeEditorContext.notebookEditor.viewModel.viewCells;
|
||||
|
||||
@@ -1107,7 +1107,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
|
||||
async undo() {
|
||||
if (!this.metadata.editable) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const editStack = this._undoService.getElements(this.uri);
|
||||
@@ -1127,7 +1127,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
|
||||
async redo() {
|
||||
if (!this.metadata.editable) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
const editStack = this._undoService.getElements(this.uri);
|
||||
|
||||
@@ -228,7 +228,7 @@ export class SettingsEditor2 extends EditorPane {
|
||||
private get focusedSettingDOMElement(): HTMLElement | undefined {
|
||||
const focused = this.settingsTree.getFocus()[0];
|
||||
if (!(focused instanceof SettingsTreeSettingElement)) {
|
||||
return undefined; // {{ SQL CARBON EDIT }}
|
||||
return undefined; // {{SQL CARBON EDIT}}
|
||||
}
|
||||
|
||||
return this.settingRenderers.getDOMElementsForSettingKey(this.settingsTree.getHTMLElement(), focused.setting.key)[0];
|
||||
|
||||
@@ -81,7 +81,7 @@ import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { once } from 'vs/base/common/functional';
|
||||
import { ThemeIcon } from 'vs/platform/theme/common/themeService';
|
||||
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
// integration with tasks view panel
|
||||
import { ITaskService as ISqlTaskService, TaskStatusChangeArgs } from 'sql/workbench/services/tasks/common/tasksService';
|
||||
import { TaskStatus } from 'sql/workbench/api/common/extHostBackgroundTaskManagement';
|
||||
@@ -1495,7 +1495,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
|
||||
const execTask = async (task: Task, resolver: ITaskResolver): Promise<ITaskSummary> => {
|
||||
return ProblemMatcherRegistry.onReady().then(() => {
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
const taskNodeId = UUID.generateUuid();
|
||||
let taskInfo: TaskInfo = {
|
||||
databaseName: undefined,
|
||||
@@ -1512,7 +1512,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
this.lastRunTasksViewTask = taskInfo;
|
||||
|
||||
let executeResult = this.getTaskSystem().run(task, resolver);
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
return this.handleExecuteResult(executeResult, runSource, taskNodeId);
|
||||
});
|
||||
};
|
||||
@@ -1586,7 +1586,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
throw new TaskError(Severity.Warning, nls.localize('TaskSystem.active', 'There is already a task running. Terminate it first before executing another task.'), TaskErrors.RunningTask);
|
||||
}
|
||||
}
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
executeResult.promise.then((summary: ITaskSummary) => {
|
||||
let args: TaskStatusChangeArgs = {
|
||||
taskId: taskNodeId ? taskNodeId : executeResult.task._id,
|
||||
|
||||
@@ -46,7 +46,7 @@ import { IPanelService } from 'vs/workbench/services/panel/common/panelService';
|
||||
import { IPathService } from 'vs/workbench/services/path/common/pathService';
|
||||
import { IPreferencesService } from 'vs/workbench/services/preferences/common/preferences';
|
||||
import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles';
|
||||
// {{ SQL CARBON EDIT }}
|
||||
// {{SQL CARBON EDIT}}
|
||||
// integration with tasks view panel
|
||||
import { ITaskService as ISqlTaskService } from 'sql/workbench/services/tasks/common/tasksService';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user