Skip to content

Commit

Permalink
Merge pull request #21 from uros-5/completion-fix
Browse files Browse the repository at this point in the history
Completion fix
  • Loading branch information
uros-5 authored Jun 21, 2024
2 parents f7c4ede + 08c7785 commit e29ebd8
Show file tree
Hide file tree
Showing 30 changed files with 584 additions and 160 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/CI-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
'on':
push:
branches:
- nodejs
- completion-fix
tags-ignore:
- '**'
paths-ignore:
Expand Down Expand Up @@ -82,6 +82,13 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-riscv64-linux-gnu -y
build: yarn build --target riscv64gc-unknown-linux-gnu
- host: ubuntu-latest
build: |
yarn build --target x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
setup: |
sudo apt-get install gcc-aarch64-linux-gnu
rustup target add aarch64-unknown-linux-gnu
name: stable - ${{ matrix.settings.target }} - node@20
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion editors/code/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"preLaunchTask": {
"type": "npm",
"script": "watch"
"script": "esbuild"
},
"env": {
"SERVER_PATH": "/home/uros/.cache/cargo/target/debug/jinja-lsp"
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class NodejsLspFiles {
/** Actions can come from unsaved context. */
addGlobalContext(uri: string, actions?: Array<Action> | undefined | null): void
deleteAll(filename: string): void
addOne(id: number, filename: string, content: string, line: number): Array<JsIdentifier>
addOne(id: number, filename: string, content: string, line: number, ext: string): Array<JsIdentifier>
getVariables(id: string, line: number): Array<JsIdentifier> | null
hover(id: number, filename: string, line: number, position: JsPosition): JsHover | null
complete(id: number, filename: string, line: number, position: JsPosition): Array<JsCompletionItem> | null
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-android-arm-eabi",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-android-arm64",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-darwin-arm64",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-darwin-universal",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/freebsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-freebsd-x64",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"freebsd"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/gnu-linux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-gnu-linux",
"version": "0.0.4",
"version": "0.0.6",
"os": [
"gnu",
"linux"
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-arm-gnueabihf",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-arm-musleabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-arm-musleabihf",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-arm64-gnu",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-arm64-musl",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-riscv64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-riscv64-gnu",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
6 changes: 4 additions & 2 deletions jinja-lsp-nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-x64-gnu",
"version": "0.0.3",
"version": "0.0.9",
"os": [
"linux"
],
Expand All @@ -11,12 +11,14 @@
"files": [
"functions.linux-x64-gnu.node"
],
"description": "Bindings for jinja-lsp",
"license": "MIT",
"engines": {
"node": ">= 10"
},
"libc": [
"gnu",
"glibc"
]
],
"repository": "https://github.com/uros-5/jinja-lsp"
}
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-linux-x64-musl",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-win32-arm64-msvc",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion jinja-lsp-nodejs/npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions-win32-ia32-msvc",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"win32"
],
Expand Down
6 changes: 3 additions & 3 deletions jinja-lsp-nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@jinja-lsp/functions-win32-x64-msvc",
"version": "0.0.4",
"version": "0.0.9",
"os": [
"win32"
],
"cpu": [
"x64"
],
"main": "functions.win32-x64-msvc",
"main": "functions.win32-x64-msvc.node",
"files": [
"functions.win32-x64-msvc"
"functions.win32-x64-msvc.node"
],
"description": "Bindings for jinja-lsp",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions jinja-lsp-nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions jinja-lsp-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jinja-lsp/functions",
"version": "0.0.4",
"version": "0.0.9",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand All @@ -22,7 +22,7 @@
"armv7-linux-androideabi",
"universal-apple-darwin",
"riscv64gc-unknown-linux-gnu",
"linux-x64-gnu"
"x86_64-unknown-linux-gnu"
]
}
},
Expand All @@ -49,4 +49,4 @@
"packageManager": "[email protected]",
"repository": "https://github.com/uros-5/jinja-lsp",
"description": "Bindings for jinja-lsp"
}
}
Loading

0 comments on commit e29ebd8

Please sign in to comment.