简体   繁体   English

.atom文件中的.js文件中的代码完成是否可以使用atom-typescript插件工作?

[英]Will code completion in .js files work using atom-typescript plugin for atom?

I have a typescript definition file https://github.com/borisyankov/DefinitelyTyped/blob/master/arcgis-js-api/arcgis-js-api.d.ts . 我有一个打字稿定义文件https://github.com/borisyankov/DefinitelyTyped/blob/master/arcgis-js-api/arcgis-js-api.d.ts I used atom-typscript plugin in atom editor and was able to get code completion in .ts files when I use import/require. 我在atom编辑器中使用了atom-typscript插件,当我使用import / require时,能够在.ts文件中获得代码完成。 How can I get code completion work in .js files (in amd)? 如何在.js文件(在AMD中)中完成代码完成工作? is it possible? 可能吗?

How can I get code completion work in .js files (in amd)? 如何在.js文件(在AMD中)中完成代码完成工作? is it possible? 可能吗?

Not using atom-typescript. 不使用atom-typescript。 VSCode and WebStorm supports providing intellisense for .js files using .d.ts files. VSCode和WebStorm支持使用.d.ts文件为.js文件提供智能感知。

It's requested but not on the plans for atom-typescript : https://github.com/TypeStrong/atom-typescript/issues/315 这是要求的,但不是关于原子打字稿的计划: https : //github.com/TypeStrong/atom-typescript/issues/315

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM