Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

raml-suggestions

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raml-suggestions

[![Build Status](https://travis-ci.org/raml-org/raml-suggestions.svg?branch=master)](https://travis-ci.org/raml-org/raml-suggestions)

  • 0.0.31
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
112
decreased by-22.76%
Maintainers
2
Weekly downloads
 
Created
Source

RAML Suggestions (beta)

Build Status

This module provides auto-completion suggestions for RAML. See http://raml.org for more information about RAML.

Usage

Implement IEditorStateProvider interface to create editor state provider

  • getText method should return text of the document opened in the editor
  • getPath method should return full path to the document opened in the editor
  • getBaseName method should return file name of the document opened in the editor
  • getOffset method should return editor cursor offset

Implement IFSProvider interface to create File System data provider.

  • contentDirName method should return directory name of the file, opened in the specific editor
  • dirName method should directory name by full path
  • exists method should check whether an item exists by full path
  • resolve method should resolves one path against another
  • isDirectory method should check whether the path points to a directory
  • readDir method should return return directory content list

Set default IEditorStateProvider and IFSProvider using setDefaultEditorStateProvider and setDefaultFSProvider methods.

Call suggestDefault method to get default suggestions list using default providers or call suggest method taking IEditorStateProvider and IFSProvider as arguments.

Suggestions are categorized (optional field "category" in suggestion) as described in "resources/categories.json" file.

FAQs

Package last updated on 21 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc