Skip to content

Commit 68b8085

Browse files
committed
feat: add support for ViewProvider API
1 parent db9cd63 commit 68b8085

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
"@types/sinon": "7.5.2",
6868
"rxjs": "^6.5.1",
6969
"sinon": "^7.5.0",
70-
"sourcegraph": "^24.0.0"
70+
"sourcegraph": "^24.1.0"
7171
}
7272
}

src/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export const createStubSourcegraphAPI = () => {
6868
},
6969
activeWindowChanges: new BehaviorSubject<sourcegraph.Window | undefined>(undefined),
7070

71+
registerViewProvider: sinon.spy((id: string, provider: sourcegraph.ViewProvider) => new Subscription()),
72+
7173
createDecorationType: () => ({ key: 'decorationType' + decorationTypeCounter++ }),
7274
createPanelView: notImplemented as (id: string) => sourcegraph.PanelView,
7375
},

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6071,10 +6071,10 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
60716071
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
60726072
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
60736073

6074-
sourcegraph@^24.0.0:
6075-
version "24.0.0"
6076-
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.0.0.tgz#2a2a2ba0f84e77bb2676d441b0b6c3e334466b49"
6077-
integrity sha512-SQtLGJ0mvCm2vQV5ABNDNXuGWqCL4rdkFWy1EAbGeDk5NrbY/KCfH6rH/4ZTl0YVyL5mYO5squMcdxjHJX2axw==
6074+
sourcegraph@^24.1.0:
6075+
version "24.1.0"
6076+
resolved "https://registry.npmjs.org/sourcegraph/-/sourcegraph-24.1.0.tgz#2fb147d04ad1d75a6a5f2bd0566ab73d07dfa271"
6077+
integrity sha512-9m/CaPvVYYHHLosCac8syhgy4QnCiRQXqvyXCDvfuTqvFaLwApfOaP2De3cacvrA2Pjj+ZwnvIlxwA1uCFP1Uw==
60786078

60796079
spawn-error-forwarder@~1.0.0:
60806080
version "1.0.0"

0 commit comments

Comments
 (0)