From 3bb27c7bf9443a094b9d44e5344f8ec4e4c62a17 Mon Sep 17 00:00:00 2001 From: Georgiy Belyanin Date: Mon, 14 Apr 2025 16:50:29 +0300 Subject: [PATCH] Set up provided rocks type annotations This patch makes the extension not only supply the builtin Tarantool modules but the provided rocks type annotations. Currently only `vshard` is added. --- CHANGELOG.md | 1 + src/extension.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 118e310..9b76817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `box.space.*:format()` documentation and annotations. - `box.schema.role` and `box.schema.user` documentation and type annotations. - Annotations on a few supplementary spaces like `box.schema._cluster`. +- Setting up provided Rock type annotations (currently only `vshard` is done). ### Changed diff --git a/src/extension.ts b/src/extension.ts index a200ddc..e06678f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -2,7 +2,10 @@ import * as vscode from 'vscode'; import * as tt from './tt'; import * as fs from 'fs'; -const annotationsPaths = [ __dirname + "/Library" ]; +const annotationsPaths = [ + __dirname + "/Library", + __dirname + "/Rocks" +]; const emmyrc = { "runtime": { "version": "LuaJIT"