Skip to content

Some of the js-mode snippets depend on js2-mode #329

Open
@qqlearn123

Description

@qqlearn123

I found that some snippets inside js-mode have dependency on functions of js2-mode, which causes errors reported if I do not have js2-mode installed.

For example, the 'param-comment' snippet is defined as:

# -*- mode: snippet -*-
# name: param-comment
# key: *@p
#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT)
# --
* @param {${type}} ${comment}.

So, is it more appropriate to put those snippets which depend on js2-mode into js2-mode snippets?

Thanks and look forward to hearing from you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions