Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 3dd50bc

Browse files
committed
Code completion for multiple imports per line
1 parent 07c2d20 commit 3dd50bc

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.0.16
4+
5+
Code completion for multiple imports per line.
6+
37
## 0.0.15
48

59
Improve handling of multiline imports.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Cairo and StarkNet language support for VS Code",
55
"author": "Eric Lau",
66
"license": "EPL-2.0",
7-
"version": "0.0.15",
7+
"version": "0.0.16",
88
"preview": true,
99
"icon": "images/logo.png",
1010
"repository": {

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function getImportAroundPosition(position: Position, textDocumentFromURI: TextDo
457457
} else if (lineUpToCursorSplit.length == 3) {
458458
// handling the import keyword e.g. "from module import"
459459
importType = ImportType.ImportKeyword;
460-
} else if (lineUpToCursorSplit.length == 4) {
460+
} else if (lineUpToCursorSplit.length >= 4) {
461461
// handling the imported function e.g. "from module import func"
462462
importType = ImportType.Function;
463463
} else {

0 commit comments

Comments
 (0)