fdecampredon / brackets-typescript Goto Github PK
View Code? Open in Web Editor NEWBrackets extension for typescript
License: Apache License 2.0
Brackets extension for typescript
License: Apache License 2.0
Hi,
When i select a word or multiline it's seems impossible to wrap it with back-tick key ``
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.
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?
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?
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!
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.
If the function takes no parameter place the cursor after the closing parenthesis, if it takes parameters place the cursor inside.
case of function used as arguments ?
Attempt to use string interpolation via ES6 template strings causes a warning messages to be displayed (error TS1001: Unexpected character "`")
Give the possibility to rename a symbol, and make every reference to this symbole renamed also
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:
Any idea?
For example if the cursor is positioned in a function call that took certain type for parameter, the completion list should only propose symbol that correspond to these type
When a class implement an interface, give the possibility to generate methods/properties of this interface
After Brackets update to 1.3, TS code indentation started behaving strangely.
Example:
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.
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).
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
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
)
Support an optional options that would enable auto formatting of a line ending when typing ;/\n
Steps
{
"typescript": {
"target": "ES5",
"module": "AMD",
"noImplicitAny": true,
"sources" : [
"src/declarations/**/*.ts",
"src/main/**/*.ts"
]
}
}
When codehint is asked with cursor at
import = require('
and a ///<reference path="
codehint should propose the list of files in the project
Support a contextual menu command that generate jsdoc command for the current class/method/function/iface/enum etc...
However some people (like me) prefer to directly edit json, so make it like tabbed editor in eclipse
Support a contextual menu command that allows to format selected block/entire document
Similar to brackets functionality for javascript
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.