MCPcopy Index your code
hub / github.com/philc/vimium / selectSpecificTab

Function selectSpecificTab

background_scripts/main.js:173–180  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

171// Selects the tab with the ID specified in request.id
172//
173async function selectSpecificTab(request) {
174 const tab = await chrome.tabs.get(request.id);
175 // Focus the tab's window. TODO(philc): Why are we null-checking chrome.windows here?
176 if (chrome.windows != null) {
177 await chrome.windows.update(tab.windowId, { focused: true });
178 }
179 await chrome.tabs.update(request.id, { active: true });
180}
181
182function moveTab({ count, tab, registryEntry }) {
183 if (registryEntry.command === "moveTabLeft") {

Callers 1

visitPreviousTabFunction · 0.85

Calls 2

getMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected