jashkenas / jashkenas/coffee-script-tmbundle

console.log showing up in function browser dropdown

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
826
Forks
232
PR merge metrics
No merged PRs in 30d

Description

![consoleproblem](https://f.cloud.github.com/assets/433928/252868/fdf2d570-8bb8-11e2-9023-9f0459a14ee7.png)
I'm not sure if this is a problem with textmate2 or with the bundle, but "console" calls are showing up in the function browser dropdown (and at the wrong indentation, no less).

Is there an easy fix?

Here's a small amount of code to cause this:

```
class Test
constructor: ->
console.log()
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the supplied CoffeeScript example and reproduce the function browser dropdown behavior in TextMate 2. Trace how the bundle recognizes class methods and console.log calls; done means console.log no longer appears as a function and the constructor has the correct indentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.