Skip to content

Commit df7c43a

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

3 files changed

Lines changed: 7 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": "5.0.1",
62+
"@sourcegraph/basic-code-intel": "6.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ export function activate(ctx: sourcegraph.ExtensionContext = DUMMY_CTX): void {
4848
)
4949
}
5050
return activateBasicCodeIntel({
51+
languageID: 'python',
5152
fileExts: ['py'],
5253
definitionPatterns: ['\\b%s\\b='],
5354
commentStyle: {
5455
docPlacement: 'below the definition',
55-
lineRegex: /#\s*(.*)/,
56+
lineRegex: /#\s?/,
5657
block: {
5758
startRegex: /"""/,
58-
contentRegex: /^\s*(.*)/,
5959
endRegex: /"""/,
6060
},
6161
},

‎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@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==
737+
"@sourcegraph/basic-code-intel@6.0.0":
738+
version "6.0.0"
739+
resolved "https://registry.yarnpkg.com/@sourcegraph/basic-code-intel/-/basic-code-intel-6.0.0.tgz#d85370469b5e11794c9363ec440343d8b9d8e93d"
740+
integrity sha512-TIDnfv9VdiBXk3/47h0IuNR3Vsco7/hqh2+hVhRJdr7nyztFMGqGwYmBOouwCJXrJ5pnDCQ3uVD8iDYxPXoghw==
741741
dependencies:
742742
lodash "^4.17.11"
743743
rxjs "^6.3.3"

0 commit comments

Comments
 (0)