mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-22 04:40:30 -04:00
Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)
* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 * fix pipelines * fix strict-null-checks * add missing files
This commit is contained in:
@@ -211,7 +211,7 @@ export class ResourceLabel extends ResourceLabels {
|
||||
|
||||
constructor(
|
||||
container: HTMLElement,
|
||||
options: IIconLabelCreationOptions,
|
||||
options: IIconLabelCreationOptions | undefined,
|
||||
@IInstantiationService instantiationService: IInstantiationService,
|
||||
@IExtensionService extensionService: IExtensionService,
|
||||
@IConfigurationService configurationService: IConfigurationService,
|
||||
@@ -252,7 +252,7 @@ class ResourceLabelWidget extends IconLabel {
|
||||
|
||||
constructor(
|
||||
container: HTMLElement,
|
||||
options: IIconLabelCreationOptions,
|
||||
options: IIconLabelCreationOptions | undefined,
|
||||
@IModeService private readonly modeService: IModeService,
|
||||
@IModelService private readonly modelService: IModelService,
|
||||
@IDecorationsService private readonly decorationsService: IDecorationsService,
|
||||
@@ -434,7 +434,7 @@ class ResourceLabelWidget extends IconLabel {
|
||||
return;
|
||||
}
|
||||
|
||||
const iconLabelOptions: IIconLabelValueOptions = {
|
||||
const iconLabelOptions: IIconLabelValueOptions & { extraClasses: string[] } = {
|
||||
title: '',
|
||||
italic: this.options && this.options.italic,
|
||||
matches: this.options && this.options.matches,
|
||||
@@ -462,7 +462,7 @@ class ResourceLabelWidget extends IconLabel {
|
||||
}
|
||||
|
||||
if (this.options && this.options.extraClasses) {
|
||||
iconLabelOptions.extraClasses!.push(...this.options.extraClasses);
|
||||
iconLabelOptions.extraClasses.push(...this.options.extraClasses);
|
||||
}
|
||||
|
||||
if (this.options && this.options.fileDecorations && resource) {
|
||||
@@ -477,11 +477,11 @@ class ResourceLabelWidget extends IconLabel {
|
||||
}
|
||||
|
||||
if (this.options.fileDecorations.colors) {
|
||||
iconLabelOptions.extraClasses!.push(deco.labelClassName);
|
||||
iconLabelOptions.extraClasses.push(deco.labelClassName);
|
||||
}
|
||||
|
||||
if (this.options.fileDecorations.badges) {
|
||||
iconLabelOptions.extraClasses!.push(deco.badgeClassName);
|
||||
iconLabelOptions.extraClasses.push(deco.badgeClassName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user