Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f706c6a
fix: menu bar hover border overlaps the tab bar active marker
devvaannsh Jul 5, 2025
e0efc85
refactor: rename close unmodified tabs to close saved tabs for better…
devvaannsh Jul 5, 2025
1f93ceb
fix: revert z-index from 20 to 2
devvaannsh Jul 5, 2025
317a55d
feat: tab bar integ tests to check visibility of tab bar based on pre…
devvaannsh Jul 5, 2025
dc0e482
feat: covered tests to check for add/remove tab based on working set
devvaannsh Jul 5, 2025
012736c
feat: add tests to test active tab functionality
devvaannsh Jul 6, 2025
ab0c33f
feat: tests to make sure all the items are appearing properly in the tab
devvaannsh Jul 6, 2025
8545558
feat: add test to make sure that tab clicks are working fine
devvaannsh Jul 6, 2025
29ddc86
feat: tests for overflow button and its dropdown menu
devvaannsh Jul 6, 2025
f12bb37
feat: test for scroll to active tab
devvaannsh Jul 6, 2025
f854594
feat: write tests for context menu visibility
devvaannsh Jul 6, 2025
3af08d4
fix: close tab context menu test
devvaannsh Jul 6, 2025
e856c45
feat: add tests for all close related option in context menu
devvaannsh Jul 6, 2025
aafd8f4
feat: add tests for split pane case
devvaannsh Jul 6, 2025
8b63c62
feat: tests for number of tabs preference setting
devvaannsh Jul 8, 2025
3fee41d
feat: integ tests for tab bar scrolling
devvaannsh Jul 8, 2025
f8708eb
feat: tests for drag-drop feature for tab bar
devvaannsh Jul 8, 2025
13464c2
feat: tests for configure working set button's tab bar and working se…
devvaannsh Jul 8, 2025
e50010f
refactor: improve code readability
devvaannsh Jul 9, 2025
d91e4a1
fix: remove await timers from tests
devvaannsh Jul 9, 2025
f10d979
fix: add small floating point tolerance as tests were failing in chro…
devvaannsh Jul 9, 2025
7099453
fix: dragging in empty pane test fails because it contained some unex…
devvaannsh Jul 9, 2025
6993085
fix: remove redundant scroll calculation
devvaannsh Jul 9, 2025
d4eadcb
fix: delete redundant file
devvaannsh Jul 9, 2025
722d0d1
refactor: remove awaitsFor timer as redundant
devvaannsh Jul 9, 2025
63871fe
fix: remove redundant checks
devvaannsh Jul 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/extensionsIntegrated/TabBar/drag-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,9 @@ define(function (require, exports, module) {
$(this).addClass("empty-pane-drop-target");

// set the drop effect
e.originalEvent.dataTransfer.dropEffect = "move";
if (e.originalEvent && e.originalEvent.dataTransfer) {
e.originalEvent.dataTransfer.dropEffect = "move";
}
}
});

Expand Down
14 changes: 7 additions & 7 deletions src/extensionsIntegrated/TabBar/more-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ define(function (require, exports, module) {
Strings.CLOSE_TAB,
Strings.CLOSE_TABS_TO_THE_LEFT,
Strings.CLOSE_TABS_TO_THE_RIGHT,
Strings.CLOSE_SAVED_TABS,
Strings.CLOSE_ALL_TABS,
Strings.CLOSE_UNMODIFIED_TABS,
"---",
Strings.CMD_FILE_RENAME,
Strings.CMD_FILE_DELETE,
Expand Down Expand Up @@ -89,12 +89,12 @@ define(function (require, exports, module) {
}

/**
* "CLOSE UNMODIFIED TABS"
* This will close all tabs that are not modified in the specified pane
* "CLOSE SAVED TABS"
* This will close all tabs that are not dirty in the specified pane
*
* @param {String} paneId - the id of the pane ["first-pane", "second-pane"]
*/
function handleCloseUnmodifiedTabs(paneId) {
function handleCloseSavedTabs(paneId) {
if (!paneId) {
return;
}
Expand All @@ -108,7 +108,7 @@ define(function (require, exports, module) {
// get all those entries that are not dirty
const unmodifiedEntries = workingSet.filter((entry) => !entry.isDirty);

// close each unmodified file in the pane
// close each non-dirty file in the pane
for (let i = unmodifiedEntries.length - 1; i >= 0; i--) {
const fileObj = FileSystem.getFileForPath(unmodifiedEntries[i].path);
CommandManager.execute(Commands.FILE_CLOSE, { file: fileObj, paneId: paneId });
Expand Down Expand Up @@ -306,8 +306,8 @@ define(function (require, exports, module) {
case Strings.CLOSE_ALL_TABS:
handleCloseAllTabs(paneId);
break;
case Strings.CLOSE_UNMODIFIED_TABS:
handleCloseUnmodifiedTabs(paneId);
case Strings.CLOSE_SAVED_TABS:
handleCloseSavedTabs(paneId);
break;
case Strings.CMD_FILE_RENAME:
handleFileRename(filePath);
Expand Down
2 changes: 1 addition & 1 deletion src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ define({
"CLOSE_TABS_TO_THE_RIGHT": "Close Tabs to the Right",
"CLOSE_TABS_TO_THE_LEFT": "Close Tabs to the Left",
"CLOSE_ALL_TABS": "Close All Tabs",
"CLOSE_UNMODIFIED_TABS": "Close Unmodified Tabs",
"CLOSE_SAVED_TABS": "Close Saved Tabs",
"REOPEN_CLOSED_FILE": "Reopen Closed File",

// CodeInspection: errors/warnings
Expand Down
1 change: 1 addition & 0 deletions test/UnitTestSuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ define(function (require, exports, module) {
require("spec/Extn-ESLint-integ-test");
require("spec/Extn-CSSColorPreview-integ-test");
require("spec/Extn-CollapseFolders-integ-test");
require("spec/Extn-Tabbar-integ-test");
// extension integration tests
require("spec/Extn-CSSCodeHints-integ-test");
require("spec/Extn-HTMLCodeHints-Lint-integ-test");
Expand Down
Loading
Loading