Git Product home page Git Product logo

brackets-typescript's People

Contributors

basarat avatar bryant1410 avatar fdecampredon avatar ivogabe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

brackets-typescript's Issues

Quick Find Definition not working

Hi, i've found "Quick Find Definition" is not working in typescritp files. Is this issue of CodeMirror/Brackets or this need to be implemented by your plugin?This is one of most-wanted features i'm missing. Thanks.

typescriptPath not working

You mentioned in a post on the atom-typescript repo that you were using a custom (and I assume jsx-typescript) compiler with brackets-typescript via the typescriptPath config setting. If I sent this to a relative path, the typescript plugin fails. If I set it to an absolute path, it doesn't time out, but it gives me the same errors and lack of support that the 1.4.1 typescript compiler outputs. Am I missing something?

Code completion not working

This might be just me not knowing how to operate this thing but I can't seem to get code completion working.

I've added a .brackets-typescript file to my project and it contains this

{
    "sources" : [
        "index.ts"
    ],
    "compileOnSave": false,

    "target": "ES5",
    "module": "commonjs",
    "outDir": "./bin/",
    "noImplicitAny": true
}

I opened the folder of my project in Brackets and I started typing but nothing is happening. For example, I tried

var a: String = "hello";

and when I type

a.

No auto-complete menu jumps out.
Is there something else I need to enable or have installed?

Protected keyword generates Typescript error

Hi,

Using the latest version (1.4) of Typescript, the IDE generates error TS1008 (unexpected token). Grunt-ts compiler which points to the same custom compiler path compiles successfully. I tried replacing the built-in plugin files (typescriptService.js and lib.d.ts) with no success.

Is this expected or have I made an error somewhere ?

Thanks!

TypeError thrown in TypeScriptProject

A TypeError is thrown from within TypeScript's source, but originating in the TypeScriptProject.getReferencedOrImportedFiles method.

Here's the full stack trace:

Uncaught TypeError: Object /home/chances/Documents/My Chrome Extensions/YouTunes/YouTunes TypeScript/ts/declarations/youtunes.d.ts has no method 'getLength' ServiceBuilder.js:12326
Scanner.setSourceText ServiceBuilder.js:12326
preProcessFile ServiceBuilder.js:22346
CoreServices.getPreProcessedFileInfo typescriptServices.js:62519
TypeScriptProject.getReferencedOrImportedFiles project.js:621
(anonymous function) project.js:543
(anonymous function) thirdparty.min.js:550
j thirdparty.min.js:550
k.fireWith thirdparty.min.js:550
e.(anonymous function) thirdparty.min.js:550
(anonymous function) fileSystem.js:341
(anonymous function) /filesystem/File.js:126
(anonymous function) /filesystem/impls/appshell/AppshellFileSystem.js:373

The error is thrown for every file added to a project.

I'm not sure if this is a bug with TypeScript or if it's something you should be catching, but I thought I'd give you a heads up anyway.

Brackets registry shows 0.2.0

It seems that Brackets will show the version from the 'Releases' page as shown in:

Brackets Registry

Which essentially means I can't get anywhere near the latest version. Can you make new releases?

Refactor : rename

Give the possibility to rename a symbol, and make every reference to this symbole renamed also

Crash 'pure virtual called' on Ubuntu 14.04

Hello,
I open this ticket even if I'm really not sure if it's caused by brackets-typescript plugin.
There's a ticket opened on bracket's github, and it happens it might be related to typescript extension : adobe/brackets#9166

Quoting myself:
I'm running Xubuntu 14.04 on two PC's, both of them are affected. I can't find any particular scenario to reproduce, it seems to happen unpredictably.
I use the latest official version (not from github): Version 1.0 - 1.0.0-15191 (release 3f2eb90)
but I had the same issue with previous versions before 1.0 (can't remember the exact build).

What I can say, if it helps:

  • I use typescript extensions
  • It happens whether I'm writting Javascript, Typescript or even Markdown ; can't find any pattern here
  • Terminal shows "pure virtual method called terminate called without an active exception"
  • I tried to move out extensions "JavaScriptCodeHints" and "JSLint" from brackets/www/extensions/default/ , but still the problem persists

Any idea?

Indentation in Brackets 1.3 does not work as expected

After Brackets update to 1.3, TS code indentation started behaving strangely.
Example:

  • I type if ( - right after I open parenthesis, the whole line jumps one or two tabs to the right
  • I continue typing 2 > 1) { - right after the brace the whole line jumps to the column 1 (all indentation spaces are removed)
  • afterwards the line remains there, subsequent lines are aligned to it

When I downgrade Brackets to 1.2, everything is fine again. Looks like a breaking change in 1.3.

So far the solution is to stay on 1.2. The problem needs a solution though.
Meanwhile, is there a way to disable the formatting in the plugin with some configuration options? I had a look into the sources, but I have not found anything.

noLib option doesn't work

Setting "noLib": true in my .brackets.json does not work. The default lib.d.ts is still used when analyzing my code.

I probed the code a little bit and noticed that the method TypeScriptProject.collectFiles is called two times when my project starts up. The first time it is called _this.config.noLib has the correct value true) shortly after it is called again and _this.config.noLib has the incorrect default value (false).

Error installing extention

Here is the error from the brackets console:

require.js:1903 GET file:///home/anon/.config/Brackets/extensions/user/brackets-typescript/lib/text.js net::ERR_FILE_NOT_FOUNDreq.load @ require.js:1903load @ require.js:1647load @ require.js:828fetch @ require.js:818check @ require.js:848enable @ require.js:1151enable @ require.js:1519callPlugin @ require.js:1083fetch @ require.js:818check @ require.js:848enable @ require.js:1151enable @ require.js:1519(anonymous function) @ require.js:1136(anonymous function) @ require.js:132each @ require.js:57enable @ require.js:1098init @ require.js:782callGetModule @ require.js:1178completeLoad @ require.js:1552onScriptLoad @ require.js:1679
require.js:166 Uncaught Error: Script error for: text
http://requirejs.org/docs/errors.html#scripterrormakeError @ require.js:166onScriptError @ require.js:1689
ExtensionLoader.js:227 [Extension] failed to load /home/anon/.config/Brackets/extensions/user/brackets-typescript - Error: Load timeout for modules: text!package.json_unnormalized2,text!package.json_unnormalized3,text!package.json_unnormalized4
http://requirejs.org/docs/errors.html#timeout

Require should also look for .d.ts files

If you compile a .ts file to a definitions file (.d.ts), and open that file in Brackets, you will see errors on the require calls.

Example:
import someFile = require('./someFile');
(and in the same directory there is also a file named someFile.d.ts)

Auto formatting

Support an optional options that would enable auto formatting of a line ending when typing ;/\n

Code completion not working

Steps

  1. OS Windows 8.1
  2. Installed latest version of Brackets
  3. Installed Brackets-TypeScript
  4. created .brackets.json and added
{
    "typescript": {
        "target": "ES5",
        "module": "AMD",
        "noImplicitAny": true,
        "sources" : [
            "src/declarations/**/*.ts",
            "src/main/**/*.ts"
        ]
    }
}
  1. Still now luck for code completion of Intellisense

JSDoc comment Generation

Support a contextual menu command that generate jsdoc command for the current class/method/function/iface/enum etc...

Formatting command

Support a contextual menu command that allows to format selected block/entire document

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.