Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eating chunks of code #547

Closed
dcsan opened this issue Sep 13, 2015 · 2 comments
Closed

eating chunks of code #547

dcsan opened this issue Sep 13, 2015 · 2 comments

Comments

@dcsan
Copy link

dcsan commented Sep 13, 2015

I'm trying to use this with typescript. not sure if that is the reason, but it keeps eating huge chunks of my code.


    getOneReply(input: Input) {
        results: Output[] = this.runCommands(input);
        if (results) {
            debug("got result", results);
            var one = results[0]; // this adapter can only send one
            var fmtOut = this.adapt(one);
            debug("fmtOut>>\n", fmtOut);
            returrn fmtOut;
        else {
            debug("no results");
            returrn null;
        }
    }


// turns into

    eReply(input: Input) {
        lts: Output[] = this.runCommands(input);
        results) {
            g("got result", results);
            one = results[0]; // this adapter can only send one
            fmtOut = this.adapt(one);
            g("fmtOut>>\n", fmtOut);
            rn fmtOut;
        se {
            g("no results");
            rn null;

its as if someone went through with a vertical cleaver and cut off the first 4 chars of each line...

I keep trying to use it since its such a useful plugin. seems safe if i select 2 or 3 lines, but anything more ends in tears... ;(

this is with 4 space soft tabs code.

@stale
Copy link

stale bot commented Nov 4, 2017

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 4, 2017
@stale stale bot removed the stale label Nov 8, 2017
@stale
Copy link

stale bot commented Jan 7, 2018

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants