stitch-ui
Version:
48 lines (47 loc) • 1.31 kB
JavaScript
export default {
rules: {
getCompletions(editor, session, pos, prefix, callback) {
callback(null, [
{
name: "%%args.url.scheme",
value: "%%args.url.scheme",
score: 1,
meta: "scheme ('http' or 'https')"
},
{
name: "%%args.url.path",
value: "%%args.url.path",
score: 1,
meta: "path of request, e.g. '/blog/1/comments'"
},
{
name: "%%args.url.query",
value: "%%args.url.query",
score: 1,
meta: "query string, e.g. 'user=steve&id=8675309'"
},
{
name: "%%args.url.fragment",
value: "%%args.url.fragment",
score: 1,
meta: "url fragment"
},
{
name: "%%args.headers",
value: "%%args.headers",
score: 1,
meta: "headers"
},
{ name: "%%args.body", value: "%%args.body", score: 1, meta: "body" },
{
name: "%%args.followRedirects",
value: "%%args.followRedirects",
score: 1,
meta: ""
},
{ name: "%%args.cookies", value: "%%args.cookies", score: 1, meta: "" },
{ name: "%%args.authUrl", value: "%%args.authUrl", score: 1, meta: "" }
]);
}
}
};