8000 feat: enable code search and add sponsor Sourcegraph by conwnet · Pull Request #211 · conwnet/github1s · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: enable code search and add sponsor Sourcegraph #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ $ yarn build

The continued development and maintenance of GitHub1s is made possible by these generous sponsors:

<br />
<a href="https://vercel.com/?utm_source=vscode-github1s&utm_campaign=oss">
<img src="https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/vercel-logo.svg">
</a>
<br /><br />
<table><tbody><tr>
<td><a href="https://vercel.com/?utm_source=vscode-github1s&utm_campaign=oss">
<img height="40px" src="https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/sourcegraph-logo.svg">
</a></td>
<td><a href="https://vercel.com/?utm_source=vscode-github1s&utm_campaign=oss">
<img height="40px" src="https://raw.githubusercontent.com/conwnet/github1s/master/resources/images/vercel-logo.svg">
</a></td>
</tr></tbody></table>

## Third-party Related Projects

Expand Down
13 changes: 5 additions & 8 deletions extensions/github1s/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import {
GitHub1sFileSystemProvider,
GitHub1sFileSearchProvider,
// GitHub1sTextSearchProvider,
GitHub1sTextSearchProvider,
GitHub1sSubmoduleDecorationProvider,
} from '@/providers';
import { showSponsors } from '@/sponsors';
Expand All @@ -40,13 +40,10 @@ export function activate(context: vscode.ExtensionContext) {
GitHub1sFileSearchProvider.scheme,
new GitHub1sFileSearchProvider(fsProvider)
),
// TODO: The Code Search ability is powered by Sourcegraph
// We are actively in touch with the Sourcegraph Team
// It will be enabled if we get their permission
// vscode.workspace.registerTextSearchProvider(
// GitHub1sTextSearchProvider.scheme,
// new GitHub1sTextSearchProvider()
// ),
vscode.workspace.registerTextSearchProvider(
GitHub1sTextSearchProvider.scheme,
new GitHub1sTextSearchProvider()
),
vscode.window.registerFileDecorationProvider(
new GitHub1sSubmoduleDecorationProvider(fsProvider)
)
Expand Down
5 changes: 5 additions & 0 deletions extensions/github1s/src/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const sponsors = [
link: 'https://vercel.com/?utm_source=vscode-github1s&utm_campaign=oss',
description: 'Develop. Preview. Ship.',
},
{
name: 'Sourcegraph',
link: 'https://sourcegraph.com',
description: 'Universal code search',
},
];

export const showSponsors = () => {
Expand Down
66 changes: 66 additions & 0 deletions resources/images/sourcegraph-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/vs/workbench/contrib/url/browser/trustedDomains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const github1sDefaultTrustedDomains = [
'*.microsoft.com',
'*.github1s.com',
'*.vercel.com',
'*.sourcegraph.com',
];

export function readStaticTrustedDomains(
Expand Down
0