Skip to content

Commit f2e09fc

Browse files
committed
Bump basic-code-intel
1 parent 6d8ccbb commit f2e09fc

3 files changed

Lines changed: 16 additions & 6 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": "4.0.2",
62+
"@sourcegraph/basic-code-intel": "5.0.1",
6363
"@types/ws": "^6.0.1",
6464
"rxjs": "^6.3.3",
6565
"tagged-template-noop": "^2.1.0",

‎src/sourcegraph-python.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
5050
return activateBasicCodeIntel({
5151
fileExts: ['py'],
5252
definitionPatterns: ['\\b%s\\b='],
53+
commentStyle: {
54+
docPlacement: 'below the definition',
55+
lineRegex: /#\s*(.*)/,
56+
block: {
57+
startRegex: /"""/,
58+
contentRegex: /^\s*(.*)/,
59+
endRegex: /"""/,
60+
},
61+
},
5362
})(ctx)
5463
}
5564

‎yarn.lock‎

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

737-
"@sourcegraph/basic-code-intel@4.0.2":
738-
version "4.0.2"
739-
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-4.0.2.tgz#97d2e591c654be6d83a7f48b284728569c6007cb"
740-
integrity sha512-qQApeG29cc6EnbYlxAHKtiTCWi30WVDObO+B07MlvRf9s4dlGu2F/pwjUnS/NqO4j35gGOnlJMEyCPp2u2xB9g==
737+
"@sourcegraph/basic-code-intel@5.0.1":
738+
version "5.0.1"
739+
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-5.0.1.tgz#709634a78242c89b8ca30b636ee32e64c2e5425f"
740+
integrity sha512-G18EzN8GEzCl+mAtqaGklOaSqtfW1sKPnJEiGem28lAdvC5ITmNNUGRFwtFiCLQa+EGPNA26MvJvXIcHOnZIPg==
741741
dependencies:
742+
lodash "^4.17.11"
742743
rxjs "^6.3.3"
743744
sourcegraph "^20.1.0"
744745

@@ -2913,7 +2914,7 @@ lodash.uniq@^4.5.0:
29132914
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
29142915
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
29152916

2916-
lodash@^4.17.10, lodash@^4.17.4, lodash@^4.2.0:
2917+
lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.2.0:
29172918
version "4.17.11"
29182919
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
29192920
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==

0 commit comments

Comments
 (0)