Skip to content

Commit 5668cc8

Browse files
committed
Bump basic-code-intel
1 parent 7019e4f commit 5668cc8

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"typescript": "^3.1.3"
6060
},
6161
"dependencies": {
62-
"@sourcegraph/basic-code-intel": "^1.0.0",
62+
"@sourcegraph/basic-code-intel": "2.0.0",
6363
"@types/ws": "^6.0.1",
6464
"rxjs": "^6.3.3",
6565
"tagged-template-noop": "^2.1.0",

‎src/sourcegraph-python.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { activateOnFileExts as activateBasicCodeIntelOnFileExts } from '@sourcegraph/basic-code-intel'
1+
import { activateBasicCodeIntel } from '@sourcegraph/basic-code-intel'
22
// tslint:disable-next-line:rxjs-no-wholesale
33
import { combineLatest, concat, from, Observable, of, Subject } from 'rxjs'
44
import { map, startWith, tap } from 'rxjs/operators'
@@ -47,7 +47,10 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
4747
docURL
4848
)
4949
}
50-
return activateBasicCodeIntelOnFileExts(['py'])(ctx)
50+
return activateBasicCodeIntel({
51+
fileExts: ['py'],
52+
definitionPatterns: ['\\b%s\\b='],
53+
})(ctx)
5154
}
5255

5356
const connectionManager = new LanguageServerConnectionManager(

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@
734734
dependencies:
735735
esquery "^1.0.1"
736736

737-
"@sourcegraph/basic-code-intel@^1.0.0":
738-
version "1.0.0"
739-
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-1.0.0.tgz#3e315936f4cd3132e5b837b944f6dcdad0b47a7e"
740-
integrity sha512-fGYsUzNDx8kA4qbhg147RyaSsU4AX+kz2ywkBMNFqZ/7CsCFSrt7RAyaHB5Lv0vnlybi0x/rtS++CDGMkdW0FA==
737+
"@sourcegraph/basic-code-intel@2.0.0":
738+
version "2.0.0"
739+
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-2.0.0.tgz#1e65d3fdc7c2550a26001063965560359a9d274c"
740+
integrity sha512-VmBVmqv3WPfjjSTkJxNk5rrUxL2r71DeCiw65mxXAi2L+wzx6nnSLhch8lPwjTnzTwFwlv6iAmlpqkCst968wA==
741741
dependencies:
742742
rxjs "^6.3.3"
743743

0 commit comments

Comments
 (0)