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

Commit 60c9d12

Browse files
committed
Preview of code completion for imports
1 parent ae4b25b commit 60c9d12

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.11
4+
5+
Initial preview of code completion for imports.
6+
37
## 0.0.10
48

59
Fixed diagnostic timing issue when making changes quickly.

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 language support for VS Code",
55
"author": "Eric Lau",
66
"license": "EPL-2.0",
7-
"version": "0.0.10",
7+
"version": "0.0.11",
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
@@ -851,7 +851,7 @@ connection.onCompletion(
851851
for (const packageString of packages) {
852852
connection.console.log(`handling package ${packageString}`);
853853

854-
completionItems.push(getNewCompletionItem(textDocPositionParams, packageString /* actual import - truncated import prefix */, packageString, 0));
854+
completionItems.push(getNewCompletionItem(textDocPositionParams, packageString.substring(truncatedImport.length, packageString.length) /* actual import - truncated import prefix */, packageString, 0));
855855
}
856856

857857
}

0 commit comments

Comments
 (0)