Initial commit, 90% there
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# GitHub for Visual Studio Code
|
||||
|
||||
**Notice:** This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
|
||||
|
||||
## Features
|
||||
|
||||
This extension provides the following GitHub-related features for VS Code:
|
||||
|
||||
- `Publish to GitHub` command
|
||||
- `Clone from GitHub` participant to the `Git: Clone` command
|
||||
- GitHub authentication for built-in git commands, controlled via the `github.gitAuthentication` command
|
||||
- Automatic fork creation when attempting to push to a repository without permissions
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
export const __webpack_id__=555;export const __webpack_ids__=[555];export const __webpack_modules__={6555:(e,r,t)=>{t.d(r,{graphql:()=>d});var a=t(3698),s=t(5407),o=class extends Error{constructor(e,r,t){super("Request failed due to following response errors:\n"+t.errors.map(e=>` - ${e.message}`).join("\n")),this.request=e,this.headers=r,this.response=t,this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},n=["method","baseUrl","url","headers","request","query","mediaType","operationName"],i=["query","method","url"],c=/\/api\/v3\/?$/;var d=function e(r,t){const a=r.defaults(t);return Object.assign((e,r)=>function(e,r,t){if(t){if("string"==typeof r&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in t)if(i.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const a="string"==typeof r?Object.assign({query:r},t):r,s=Object.keys(a).reduce((e,r)=>n.includes(r)?(e[r]=a[r],e):(e.variables||(e.variables={}),e.variables[r]=a[r],e),{}),d=a.baseUrl||e.endpoint.DEFAULTS.baseUrl;return c.test(d)&&(s.url=d.replace(c,"/api/graphql")),e(s).then(e=>{if(e.data.errors){const r={};for(const t of Object.keys(e.headers))r[t]=e.headers[t];throw new o(s,r,e.data)}return e.data.data})}(a,e,r),{defaults:e.bind(null,a),endpoint:a.endpoint})}(a.E,{headers:{"user-agent":`octokit-graphql.js/0.0.0-development ${(0,s.$)()}`},method:"POST",url:"/graphql"})}};
|
||||
//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/1e3c50d64110be466c0b4a45222e81d2c9352888/extensions/github/dist/555.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
/*!
|
||||
* NevWare21 Solutions LLC - ts-async, 0.5.4
|
||||
* https://github.com/nevware21/ts-async
|
||||
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
/*! https://github.com/nevware21/ts-utils v0.11.6 */
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,11 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
.vscode-dark img[src$=\#gh-light-mode-only],
|
||||
.vscode-light img[src$=\#gh-dark-mode-only],
|
||||
.vscode-high-contrast:not(.vscode-high-contrast-light) img[src$=\#gh-light-mode-only],
|
||||
.vscode-high-contrast-light img[src$=\#gh-dark-mode-only] {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"github","displayName":"%displayName%","description":"%description%","publisher":"vscode","license":"MIT","version":"0.0.1","engines":{"vscode":"^1.41.0"},"aiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","icon":"images/icon.png","categories":["Other"],"activationEvents":["*"],"extensionDependencies":["vscode.git-base"],"main":"./dist/extension.js","type":"module","capabilities":{"virtualWorkspaces":false,"untrustedWorkspaces":{"supported":true}},"enabledApiProposals":["canonicalUriProvider","contribEditSessions","contribShareMenu","contribSourceControlHistoryItemMenu","scmHistoryProvider","shareProvider","timeline"],"contributes":{"commands":[{"command":"github.publish","title":"%command.publish%"},{"command":"github.copyVscodeDevLink","title":"%command.copyVscodeDevLink%"},{"command":"github.copyVscodeDevLinkFile","title":"%command.copyVscodeDevLink%"},{"command":"github.copyVscodeDevLinkWithoutRange","title":"%command.copyVscodeDevLink%"},{"command":"github.openOnVscodeDev","title":"%command.openOnVscodeDev%","icon":"$(globe)"},{"command":"github.graph.openOnGitHub","title":"%command.openOnGitHub%","icon":"$(github)"},{"command":"github.timeline.openOnGitHub","title":"%command.openOnGitHub%","icon":"$(github)"}],"continueEditSession":[{"command":"github.openOnVscodeDev","when":"github.hasGitHubRepo","qualifiedName":"Continue Working in vscode.dev","category":"Remote Repositories","remoteGroup":"virtualfs_44_vscode-vfs_2_web@2"}],"menus":{"commandPalette":[{"command":"github.publish","when":"git-base.gitEnabled && workspaceFolderCount != 0 && remoteName != 'codespaces'"},{"command":"github.graph.openOnGitHub","when":"false"},{"command":"github.copyVscodeDevLink","when":"false"},{"command":"github.copyVscodeDevLinkFile","when":"false"},{"command":"github.copyVscodeDevLinkWithoutRange","when":"false"},{"command":"github.openOnVscodeDev","when":"false"},{"command":"github.timeline.openOnGitHub","when":"false"}],"file/share":[{"command":"github.copyVscodeDevLinkFile","when":"github.hasGitHubRepo && remoteName != 'codespaces'","group":"0_vscode@0"}],"editor/context/share":[{"command":"github.copyVscodeDevLink","when":"github.hasGitHubRepo && resourceScheme != untitled && !isInEmbeddedEditor && remoteName != 'codespaces'","group":"0_vscode@0"}],"explorer/context/share":[{"command":"github.copyVscodeDevLinkWithoutRange","when":"github.hasGitHubRepo && resourceScheme != untitled && !isInEmbeddedEditor && remoteName != 'codespaces'","group":"0_vscode@0"}],"editor/lineNumber/context":[{"command":"github.copyVscodeDevLink","when":"github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on && remoteName != 'codespaces'","group":"1_cutcopypaste@2"},{"command":"github.copyVscodeDevLink","when":"github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editor.notebook && remoteName != 'codespaces'","group":"1_cutcopypaste@2"}],"editor/title/context/share":[{"command":"github.copyVscodeDevLinkWithoutRange","when":"github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'","group":"0_vscode@0"}],"scm/historyItem/context":[{"command":"github.graph.openOnGitHub","when":"github.hasGitHubRepo","group":"0_view@2"}],"timeline/item/context":[{"command":"github.timeline.openOnGitHub","group":"1_actions@3","when":"github.hasGitHubRepo && timelineItem =~ /git:file:commit\\b/"}]},"configuration":[{"title":"GitHub","properties":{"github.branchProtection":{"type":"boolean","scope":"resource","default":true,"description":"%config.branchProtection%"},"github.gitAuthentication":{"type":"boolean","scope":"resource","default":true,"description":"%config.gitAuthentication%"},"github.gitProtocol":{"type":"string","enum":["https","ssh"],"default":"https","description":"%config.gitProtocol%"},"github.showAvatar":{"type":"boolean","scope":"resource","default":true,"description":"%config.showAvatar%"}}}],"viewsWelcome":[{"view":"scm","contents":"%welcome.publishFolder%","when":"config.git.enabled && git.state == initialized && workbenchState == folder && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0"},{"view":"scm","contents":"%welcome.publishWorkspaceFolder%","when":"config.git.enabled && git.state == initialized && workbenchState == workspace && workspaceFolderCount != 0 && git.parentRepositoryCount == 0 && git.unsafeRepositoryCount == 0 && git.closedRepositoryCount == 0"}],"markdown.previewStyles":["./markdown.css"]},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|
||||
@@ -0,0 +1 @@
|
||||
{"displayName":"GitHub","description":"GitHub features for VS Code","command.copyVscodeDevLink":"Copy vscode.dev Link","command.publish":"Publish to GitHub","command.openOnGitHub":"Open on GitHub","command.openOnVscodeDev":"Open in vscode.dev","config.branchProtection":"Controls whether to query repository rules for GitHub repositories","config.gitAuthentication":"Controls whether to enable automatic GitHub authentication for git commands within VS Code.","config.gitProtocol":"Controls which protocol is used to clone a GitHub repository","config.showAvatar":"Controls whether to show the GitHub avatar of the commit author in various hovers (ex: Git blame, Timeline, Source Control Graph, etc.)","welcome.publishFolder":{"message":"You can directly publish this folder to a GitHub repository. Once published, you'll have access to source control features powered by Git and GitHub.\n[$(github) Publish to GitHub](command:github.publish)","comment":["{Locked='$(github)'}","Do not translate '$(github)'. It will be rendered as an icon","{Locked='](command:github.publish'}","Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code","Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"]},"welcome.publishWorkspaceFolder":{"message":"You can directly publish a workspace folder to a GitHub repository. Once published, you'll have access to source control features powered by Git and GitHub.\n[$(github) Publish to GitHub](command:github.publish)","comment":["{Locked='$(github)'}","Do not translate '$(github)'. It will be rendered as an icon","{Locked='](command:github.publish'}","Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code","Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"]}}
|
||||
Reference in New Issue
Block a user