mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix and enable core unit test coverage (#18781)
* Fix and enable core unit test coverage * switch * Fix coverage mapping * don't output marked * Fix filter check
This commit is contained in:
@@ -964,7 +964,8 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
|
||||
// Determine options
|
||||
const openEditorOptions: IEditorOpenOptions = {
|
||||
index: options ? options.index : undefined,
|
||||
pinned: options?.sticky || !this.accessor.partOptions.enablePreview || editor.isDirty() || (options?.pinned ?? typeof options?.index === 'number' /* unless specified, prefer to pin when opening with index */) || (typeof options?.index === 'number' && this.model.isSticky(options.index)),
|
||||
// {{SQL CARBON EDIT}} Refactor statement to not use ?? since that breaks code coverage on unit tests
|
||||
pinned: options?.sticky || !this.accessor.partOptions.enablePreview || editor.isDirty() || (options?.pinned !== null ? options?.pinned : typeof options?.index === 'number' /* unless specified, prefer to pin when opening with index */) || (typeof options?.index === 'number' && this.model.isSticky(options.index)),
|
||||
sticky: options?.sticky || (typeof options?.index === 'number' && this.model.isSticky(options.index)),
|
||||
active: this.count === 0 || !options || !options.inactive
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user