-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
ES6 support does not work #95
Comments
Furthermore, could you please edit this blog post to make the images of text into actual text? http://blogs.msdn.com/b/vscode/archive/2015/07/06/vs-code-es6.aspx Classic Microsoft :) |
You need to use the filesGlob property with a wildcard expression if you want to find all *.js files inside of your app folder. Change your jsconfig.json to this:
|
Where is this documented? |
Also this doesn't work. It works if I specify the full path in "files" but with the globbing config my file still shows pure errors. |
for me, removing the whole "files" section altogether seems to cause the errors to go away, indicating that ES6 applies to the entire project. Not sure if that helps your situation. The filesGlob wasn't actually the fix. (FYI, I got the filesGlob idea from tsconfig.json which is a superset of jsconfig.json, and it seemed to fix the issue, as simply removing the 'files' section fixes it for me... but then you're stuck with ES6 for your whole project) |
If my jsconfig.json file is just:
It still doesn't work, my file is highlighted as syntax errors. The only thing that's worked so far is specifying the absolute file path. |
|
Duplicate of #54? |
filesGlob can be used outside of Atom by using a file watcher with the tsconfig-glob package on npm. |
+1 There really is a very weird bug here. When placing the file in the root folder, on some projects, it works, on others it doesn't. Moving the file to the src folder does the trick. I have no resorted to stripping down the jsconfig.json completely... and no go.
To say the least, this is quite irritating and actually standing in the way on my team using this. No, we are no going to place a jsconfig.json file in each root source folder, e.g. src/, specs, etc. |
Related to #337 |
I think i found a way arround by putting a exclude instead of files:
|
Only using excludes here, some projects it works, others it doesn't. Am not using "files" in any of the jsconfig.json project files. |
duplicate of #703 |
@jrieken my ticket is a dupe of a ticket made 8 days after mine? |
Having a garbage experience with typescript and vscode, just give up man. This thread has made up my mind. |
👍 it was crippled from launch, and instead of providing any kind of community support or hiring a community advocate, the devs just keep saying "VS code fully supports ES6." Not documented in any way! A Microsoft product that has trouble with the filesystem?! Who would have guessed! |
@delvarworld , sorry, that you had an unhappy experience. We are about to close Issue #703. It wasn't a single issue but there were several issues behind the same symptom (and no, it wasn't a file system issue). The fix will be in the December update (pls see #917).
We are always interested in improving our documentation. Please let us know what you would like to see in the JS documentation: https://code.visualstudio.com/Docs/languages/javascript.
I was about to do it, but then there is a link to a repository with full source code at the end, |
Do you think that when coming across a blog and seeing the block of text one needs embedded in an image, the first thing a developer is going to do is scroll to the end of the blog post looking for an unlabeled, obfuscated link to an unrelated part of a codebase? If you have the ability to do, please edit the blog post (and the documentation) to show text instead of an image. I don't see the point of intentionally making every developer have to scour for an external link they don't know exists, to a repository not obviously related to jsconfig.json, following it, losing context of the blog post, assuming they know exactly where to look for the file in the directory structure, then clicking on it. Pushback against saving time for every single developer who comes to the blog and documentation because "there is a link" is disheartening. Please think of how newcomers approach your docs and tools. |
Not sure if you're just messing with me now, since you quoted me asking where |
No messing around, but I was wondering whether 1) you have found the page I mentioned and 2) whether you have read the page. I'm interested since in the doc it is mentioned that:
The tsconfig.json does not support |
@rui-infotrack your snippet is using Rest Spread Properties, which are not part of ES6 and therefore this construct is not yet supported. Please refer to microsoft/TypeScript#2103 for background and check this comment microsoft/TypeScript#2103 (comment). To get the sublime behaviour you can disable diagnostics using the The recommendation is to use eslint together with the vscode-eslint extension to get validation, pls see this documentation. |
@egamma, thank you for the help. I will give it a try. And sorry for my bad attitude |
@egamma Just want to say thank you. I tried and it worked well. With ESLint plugin, it works smoothly! I will try VS Code for some time and see how it goes. |
@rui-infotrack your welcome. I hope you now become a happy Code user 😄 |
Observing/sharing following things on VS code 1.14.1 Linux(as well as before).
To the effect that inline d.ts library definitions are not found/proposed, if i manually specify a tsc target value of "es6".
To the effect that inline tsc lib values in jsconfig.json are twiggled if not lowercased.
...
* @return {Promise<void>} as defined async
*/
static async describeTestBy(description, story, severity, webdriverConfig) {
... |
When I open any file in my ES6 Javascript project, every single line is underlined in red, with errors like:
In my project's root, I have a
jsconfig.json
file with the following contents:The file in question lives inside the
app
folder.The text was updated successfully, but these errors were encountered: