mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 0a7364f00514c46c9caceece15e1f82f82e3712f
This commit is contained in:
@@ -381,7 +381,7 @@ export abstract class CommonEditorConfiguration extends Disposable implements IC
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (typeof baseValue === 'object' && typeof subsetValue === 'object') {
|
||||
if (baseValue && typeof baseValue === 'object' && subsetValue && typeof subsetValue === 'object') {
|
||||
if (!this._subsetEquals(baseValue, subsetValue)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2576,9 +2576,9 @@ class EditorPixelRatio extends ComputedEditorOption<EditorOption.pixelRatio, num
|
||||
* Configuration options for quick suggestions
|
||||
*/
|
||||
export interface IQuickSuggestionsOptions {
|
||||
other: boolean;
|
||||
comments: boolean;
|
||||
strings: boolean;
|
||||
other?: boolean;
|
||||
comments?: boolean;
|
||||
strings?: boolean;
|
||||
}
|
||||
|
||||
export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
|
||||
|
||||
@@ -153,9 +153,14 @@ export class LanguagesRegistry extends Disposable {
|
||||
}
|
||||
|
||||
if (Array.isArray(lang.extensions)) {
|
||||
if (lang.configuration) {
|
||||
// insert first as this appears to be the 'primary' language definition
|
||||
resolvedLanguage.extensions = lang.extensions.concat(resolvedLanguage.extensions);
|
||||
} else {
|
||||
resolvedLanguage.extensions = resolvedLanguage.extensions.concat(lang.extensions);
|
||||
}
|
||||
for (let extension of lang.extensions) {
|
||||
mime.registerTextMime({ id: langId, mime: primaryMime, extension: extension }, this._warnOnOverwrite);
|
||||
resolvedLanguage.extensions.push(extension);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user