Skip to content
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

First draft Tech stack file provider #12

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8fb022a
techstack provider package.json
tinvaan Jan 5, 2024
8ac0464
techstack file examples
tinvaan Jan 5, 2024
31e85df
ts and vitest configs
tinvaan Jan 5, 2024
a91c040
First draft provider
tinvaan Jan 5, 2024
c43d760
Fix annotation line numbers
tinvaan Jan 5, 2024
ba8c06e
VScode techstacks fixtures
tinvaan Jan 5, 2024
92c4b2c
Minor refactor
tinvaan Jan 6, 2024
6381039
node polyfills in vite config
tinvaan Jan 7, 2024
e9c353e
Extend capabilities to .jsx and .tsx
tinvaan Jan 7, 2024
ddfda43
Use fetch API instead of filesystem module
tinvaan Jan 7, 2024
b261aa5
async annotations
tinvaan Jan 7, 2024
c77362f
Adapt tests to new signature
tinvaan Jan 7, 2024
3bf1e6d
Clear duplicate techstack yml from vscode workspace
tinvaan Jan 7, 2024
db146db
Optimize node polyfills in vite configs
tinvaan Jan 7, 2024
f4bd238
include techstack provider in web playground
tinvaan Jan 7, 2024
7328adf
Do not filter out blank lines
tinvaan Jan 8, 2024
69266f0
Provide links to website or package homepage
tinvaan Jan 8, 2024
8a8242f
Fix tests: browser and server compatible read operations
tinvaan Jan 8, 2024
894faf6
Check if window is undefined
tinvaan Jan 8, 2024
c293299
Add symlinked techstack.yml and remove node polyfills for web playground
tinvaan Jan 9, 2024
2353c3c
Use absolute file uri when loading techstack settings
tinvaan Jan 9, 2024
22ed874
Remove node polyfills from techstack provider
tinvaan Jan 9, 2024
f9e0b49
Add techstack provider to list of integrations
tinvaan Jan 9, 2024
da824c9
Place techstack.yml symlink in vscode test workspace
tinvaan Jan 9, 2024
5cffa57
Minor filename pattern refactor
tinvaan Jan 9, 2024
a56eb6a
Add README
tinvaan Jan 9, 2024
67145a3
Fix provider implementation
tinvaan May 27, 2024
d1df669
Update README
tinvaan May 27, 2024
85917f9
Bundle command
tinvaan May 27, 2024
2b128d1
Update tests
tinvaan May 27, 2024
590a4ea
Modify tsconfig settings
tinvaan May 27, 2024
3f4b02f
tsc bundle force rebuild
tinvaan May 27, 2024
ecec6ab
Refactor++
tinvaan May 27, 2024
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
9 changes: 6 additions & 3 deletions client/vscode/test/fixtures/workspace/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"openctx.debug": true,
"openctx.providers": {
// "https://sourcegraph.test:3443/.api/openctx": true,
// "https://openctx.org/npm/@openctx/provider-hello-world": true,
"../../../../../../provider/hello-world/dist/index.js": true,
"../../../../../../provider/links/dist/index.js": {
// "../../../../../../provider/hello-world/dist/index.js": true,
"https://openctx.org/npm/@openctx/provider-hello-world": true,
"https://openctx.org/npm/@openctx/provider-techstack": {
"yaml": "../techstacks/stackshare.yml"
},
"https://openctx.org/npm/@openctx/provider-links": {
"links": [
{
"title": "Telemetry",
Expand Down
1 change: 1 addition & 0 deletions client/vscode/test/fixtures/workspace/techstack.yml
6 changes: 4 additions & 2 deletions client/web-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
"observable-hooks": "^4.2.3",
"react": "^18",
"react-dom": "^18",
"rxjs": "^7.8.1"
"rxjs": "^7.8.1",
"vite-plugin-node-polyfills": "^0.19.0"
},
"devDependencies": {
"@types/react": "^18",
"@types/react-dom": "^18"
"@types/react-dom": "^18",
"@types/node": "^20.10.7"
}
}
4 changes: 4 additions & 0 deletions client/web-playground/src/demo/settings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

import type { ProviderSettings } from '@openctx/client'

async function getProviders(): Promise<Record<string, ProviderSettings | boolean>> {
const providerSettings: Record<string, ProviderSettings | boolean> = {
'../../../../provider/hello-world/index.ts': true,
'../../../../provider/techstack/index.ts': {
yaml: new URL('./techstack.yml', import.meta.url).toString()
},
'../../../../provider/links/index.ts': {
links: [
{
Expand Down
1 change: 1 addition & 0 deletions client/web-playground/src/demo/techstack.yml
Loading
Loading