Enable on pull request pages
Update default keybinding
This commit is contained in:
Jackson Kearl 2020-08-10 11:43:40 -07:00
Родитель ce3093195e
Коммит f6e8e8eb2b
6 изменённых файлов: 428 добавлений и 751 удалений

Просмотреть файл

@ -10,7 +10,7 @@ You can pull the latest release from the [releases page](https://github.com/micr
## Usage
Press cmd+shift+P to trigger the extension. This can be customized on your browser's extension configuration page under "Keyboard Shortcuts".
Press Cmd+Shift+L to trigger the extension. This can be customized on your browser's extension configuration page under "Keyboard Shortcuts". (This was previously Cmd+Shift+L but changed due to conflict with Codepsaces)
Press enter in search to accept first result. Tab/ArrowKeys to move around in results. Enter/Space to accept results. Cmd with the action to multi-select.

Просмотреть файл

@ -30,7 +30,7 @@
"commands": {
"_execute_browser_action": {
"suggested_key": {
"default": "Ctrl+Shift+P"
"default": "Ctrl+Shift+L"
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "vscode-issue-triage-extension",
"version": "0.1.1",
"version": "0.2.0",
"description": "A chromium extension to help with triaging VS Code GitHub issues.",
"main": "index.js",
"scripts": {

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -32,4 +32,5 @@ export const awaitFalsey = async (getter: () => any, tries = 25): Promise<void>
}
}
export const getCurrentRepo = () => /https:\/\/github.com\/([^/]*\/[^/]*)\/issues\/\d*/.exec(window.location.href)?.[1]!
export const getCurrentRepo = () =>
/https:\/\/github.com\/([^/]*\/[^/]*)\/(?:issues|pull)\/\d*/.exec(window.location.href)?.[1]!

Просмотреть файл

@ -194,7 +194,7 @@ const renderNoDataMessage = (container: HTMLElement) => {
const renderInactiveMessage = (container: HTMLElement) => {
container.appendChild($('h2', 'This extension not active on this page.'))
container.appendChild($('p', 'This extension is only active on `https://github.com/*/issues/*`.'))
container.appendChild($('p', 'This extension is only active on `https://github.com/*/issues|pull/*`.'))
}
const rootContainer = document.getElementById('shortcuts')