Skip to content

Commit 22d70dd

Browse files
renovate[bot]renovate-botfelixfbecker
authored
chore(deps): update dependency sourcegraph to ^24.5.0 (#34)
Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Felix Becker <felix.b@outlook.com>
1 parent 7f987bc commit 22d70dd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"prettier": "^2.0.5",
135135
"sinon": "^9.0.2",
136136
"source-map-support": "^0.5.10",
137-
"sourcegraph": "^24.0.0",
137+
"sourcegraph": "^24.5.0",
138138
"ts-node": "^8.0.2",
139139
"typescript": "^3.9.5"
140140
},

src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { combineLatest, from, Observable } from 'rxjs'
1+
import { combineLatest, from } from 'rxjs'
22
import { startWith, switchMap, filter, map } from 'rxjs/operators'
33
import * as sourcegraph from 'sourcegraph'
44
import { getCodeOwners } from './codeownersFile'
@@ -8,14 +8,14 @@ import { resolveURI } from './uri'
88
export function activate(context: sourcegraph.ExtensionContext): void {
99
context.subscriptions.add(
1010
combineLatest([
11-
from(sourcegraph.workspace.onDidOpenTextDocument).pipe(
11+
from(sourcegraph.workspace.openedTextDocuments).pipe(
1212
startWith(
13-
sourcegraph.app.activeWindow && sourcegraph.app.activeWindow.activeViewComponent
13+
sourcegraph.app.activeWindow?.activeViewComponent?.type === 'CodeEditor'
1414
? sourcegraph.app.activeWindow.activeViewComponent.document
1515
: null
1616
)
1717
),
18-
new Observable(subscriber => sourcegraph.configuration.subscribe(() => subscriber.next())),
18+
sourcegraph.configuration,
1919
])
2020
.pipe(
2121
map(([textDocument]) => textDocument),

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7143,10 +7143,10 @@ source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6:
71437143
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
71447144
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
71457145

7146-
sourcegraph@^24.0.0:
7147-
version "24.0.0"
7148-
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.0.0.tgz#2a2a2ba0f84e77bb2676d441b0b6c3e334466b49"
7149-
integrity sha512-SQtLGJ0mvCm2vQV5ABNDNXuGWqCL4rdkFWy1EAbGeDk5NrbY/KCfH6rH/4ZTl0YVyL5mYO5squMcdxjHJX2axw==
7146+
sourcegraph@^24.5.0:
7147+
version "24.5.0"
7148+
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.5.0.tgz#5ee53b1c933db99addfc801f958ce753afa850c3"
7149+
integrity sha512-VQw73xafvfZZkjNqJY0kZEXexHRbqut60ed/guDlncdZJwf6zr7jQXeqh3p5v1VH09ef23758s6u6Fqbqgmt9Q==
71507150

71517151
spawn-wrap@^1.4.2:
71527152
version "1.4.2"

0 commit comments

Comments
 (0)