Skip to content

Commit

Permalink
feat(deps): update sourcegraph (#82)
Browse files Browse the repository at this point in the history
update sourcegraph, implement DocumentHighlightProviders

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Felix Becker <felix.b@outlook.com>
  • Loading branch information
3 people committed Jul 16, 2020
1 parent 1ff7d67 commit 8b05c03
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"typescript": "^3.9.6"
},
"dependencies": {
"@sourcegraph/extension-api-classes": "^1.0.3",
"@sourcegraph/extension-api-classes": "^1.1.0",
"@types/sinon": "7.5.2",
"rxjs": "^6.5.1",
"sinon": "^7.5.0",
"sourcegraph": "^24.5.0"
"sourcegraph": "^24.6.0"
}
}
15 changes: 14 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { Location, MarkupKind, NotificationType, Position, Range, Selection } from '@sourcegraph/extension-api-classes'
import {
Location,
MarkupKind,
NotificationType,
Position,
Range,
Selection,
DocumentHighlightKind,
} from '@sourcegraph/extension-api-classes'
import { BehaviorSubject, Subject, Subscription } from 'rxjs'
import { mapTo } from 'rxjs/operators'
import * as sinon from 'sinon'
Expand Down Expand Up @@ -26,6 +34,7 @@ export const createStubSourcegraphAPI = () => {
// Enums
MarkupKind,
NotificationType,
DocumentHighlightKind,

// Namespaces
internal: {
Expand Down Expand Up @@ -64,6 +73,10 @@ export const createStubSourcegraphAPI = () => {
(selector: sourcegraph.DocumentSelector, provider: sourcegraph.CompletionItemProvider) =>
new Subscription()
),
registerDocumentHighlightProvider: sinon.spy(
(selector: sourcegraph.DocumentSelector, provider: sourcegraph.DocumentHighlightProvider) =>
new Subscription()
),
},
app: {
windows: [] as sourcegraph.Window[],
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,10 @@
eslint-plugin-react-hooks "^3.0.0"
eslint-plugin-rxjs "^0.0.2-beta.20"

"@sourcegraph/extension-api-classes@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@sourcegraph/extension-api-classes/-/extension-api-classes-1.0.3.tgz#a8b071451626414c5489aa31a9ea21d43080d339"
integrity sha512-nGDB8IAyDmA3/kaMYkYk4eOdUT4DGAJGcxGEe7zjRNywvktRH63eXdPttQCOkazpGmq3udL7Ael/HQmynkUzcw==
"@sourcegraph/extension-api-classes@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@sourcegraph/extension-api-classes/-/extension-api-classes-1.1.0.tgz#4e3f16875639f88c6783dd356cb128fa53cee091"
integrity sha512-7VHKaqcDlHqsG8gNWeAJ+deOvhYJyFkrceSUOf6fkYZ1t+0rk2BaSPu6YyylMm7jmy/Kybq5DnOW8Jsymiwnmg==
dependencies:
"@sourcegraph/extension-api-types" "^2.1.0"

Expand Down Expand Up @@ -6105,10 +6105,10 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

sourcegraph@^24.5.0:
version "24.5.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.5.0.tgz#5ee53b1c933db99addfc801f958ce753afa850c3"
integrity sha512-VQw73xafvfZZkjNqJY0kZEXexHRbqut60ed/guDlncdZJwf6zr7jQXeqh3p5v1VH09ef23758s6u6Fqbqgmt9Q==
sourcegraph@^24.6.0:
version "24.6.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.6.0.tgz#d6343a0a52c2e3c20a3d7bbcadde712bbdf4a931"
integrity sha512-FEmuGVRcSqMtE5DItZcDa1ylm7FykcswIN6M6xa0vFbyLv6INYxjGYOGq/WlH4/AUQC0abmaysPXlyJRkGgMyg==

spawn-error-forwarder@~1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 8b05c03

Please sign in to comment.