@Sisn/cds-lsp
package on the SAP NPM registry.@Sisn/cds-lsp
originally appeared (inside the compressed vsix file, which represented everything needed for the extension).@Sisn/cds-lsp
inside the 1.1.4 version of the CDS extension for VS Code is 2.0.7. Asking the SAP NPM registry for information about the newly independent version, we see that it’s already at 2.1.2. Now (at the time of writing this post) it’s at 2.1.4:=> npm info @sap/cds-lsp
@sap/cds-lsp@2.1.4 | SEE LICENSE IN LICENSE.txt | deps: 8 | versions: 2
Language server for CDS
dist
.tarball: https://npm.sap.com/@sap/cds-lsp/-/cds-lsp-2.1.4.tgz
.shasum: 5d9a7720a6278cc4299271194229b9c4f6b616e9
.integrity: sha512-NAoXcRviGbFMHZZwg7dY4+VNoocS4KABIsxbPwMS7PhYCig1naT6xCKac+VCUQYpQOiatvQgHooFrZOjz7lo9g==
dependencies:
@sap/cds-compiler: 1.15.0
@types/antlr4: 4.7.0
fs.realpath: 1.0.0
ignore: 5.0.4
ts-md5: 1.2.4
vscode-languageserver-protocol: 3.14.1
vscode-languageserver: 5.2.1
vscode-uri: 1.0.6
maintainers:
- https-support.sap.com <do.not.reply@sap.com>
dist-tags:
latest: 2.1.4
published a week ago by https-support.sap.com <do.not.reply@sap.com>
vim-cds
plugin, examining each of the components in turn:vim-cds
plugin:" vim-plug configuration
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'w0rp/ale'
Plug 'vim-airline/vim-airline'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-unimpaired'
Plug 'morhetz/gruvbox'
Plug 'leafgarland/typescript-vim'
Plug '$HOME/local/projects/vim-cds'
" Add plugins to &runtimepath
call plug#end()
vim-cds
.startcdslsp
which starts up the language server from the @Sisn/cds-lsp
package, which right now has been lifted out of the vsix archive and placed directly inside the vim-cds
plugin directory.db/data-model.cds
shows us that the vim-cds
plugin, as it stands right now, is working for us, connected to the @Sisn/cds-lsp
based language server, and active in the context of ALE.@Sisn/cds-lsp
package, such as ALEGoToDefinition
.@Sisn/cds-lsp
package with one that will be installed via npm
, we look in startcdslsp
to first of all find out where and how it’s used (via STDIO), before renaming it to move it out of the way.@Sisn/cds-lsp
or one only local to the installation location of the vim-cds
plugin.vim-cds
plugin location as an NPM project (with npm init
) and installing @Sisn/cds-lsp
locally in that location.node_modules/
directory) of the @Sisn/cds-compiler
package, we check with npm info
to see why - and yes, our suspicions are confirmed - there’s a dependency upon it (we saw this in the output earlier).@Sisn/cds-lsp
has no intermediate src/
directory. Regardless, we now attempt to kick off this new version / instance of the server code, by adding the --stdio
parameter on invocation directly in the startcdslsp
script.cds.vim
script to think about the questions.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
29 | |
24 | |
19 | |
13 | |
12 | |
11 | |
10 | |
8 | |
7 | |
6 |