文档章节

Hiding derived JavaScript files

howang
 howang
发布于 2017/08/01 15:01
字数 158
阅读 0
收藏 0

When you are working with TypeScript, you often don’t want to see generated JavaScript files in the explorer or in search results. VS Code offers filtering capabilities with a files.exclude workspace setting (File > Preferences > Settings) and you can easily create an expression to hide those derived files:

"**/*.js": { "when": "$(basename).ts"}

This pattern will match on any JavaScript file (**/*.js) but only if a sibling TypeScript file with the same name is present. The file explorer will no longer show derived resources for JavaScript if they are compiled to the same location.

Hiding derived resources

To exclude JavaScript files generated from both .ts and .tsx source files, use this expression:

"**/*.js": { "when": "$(basename).ts" },
"**/**.js": { "when": "$(basename).tsx" }

This is a bit of a trick. The search glob pattern is used as a key. The settings above use two different glob patterns to provide two unique keys but the search will still match the same files.

 

本文转载自:https://code.visualstudio.com/docs/languages/typescript#_goto-symbol-show-all-symbols

howang
粉丝 2
博文 4
码字总数 1334
作品 0
东城
程序员
私信 提问
PureScript 0.8.0 rc1 发布,静态类型语言

PureScript 0.8.0 rc1 发布,更新如下: 重大变更 None, but there are lots of new warnings related to upcoming breaking changes in 0.9: Operators as aliases will become mandatory, ......

oschina
2015/12/16
989
0
PureScript 0.8.0 发布,静态类型语言

PureScript 0.8.0 "TIMESLIDES"发布,更新如下: 重大更新 None, but there are lots of new warnings related to upcoming breaking changes in 0.9: Operators as aliases will become man......

oschina
2016/02/02
1K
0
3 Essential Sublime Text Plugins for Node & JavaSc

Check out these 3 great and essential Sublime Text plugins every JavaScript and Node developer should know about and use. JsFormat https://github.com/jdc0589/JsFormat JsFormat i......

cyper
2015/08/28
0
0
jquery-uploadify上传插件上传按钮不能点击

最近做文件上传的时候用jquery-uploadify3.1上传,可是上传按钮点击后没有反应,也不知道是怎么回事,请大家帮忙看看 我的html页面 test 我的js,名字就是activity.js $(document).ready(fun...

银粟
2015/12/14
1K
1
Make your pages load faster by combining and compressing javascript and css files

from: http://rakaz.nl/item/makeyourpagesloadfasterbycombiningandcompressingjavascriptandcssfiles //============================= About six months ago I noticed the pages generat......

jia程序员
2009/04/24
0
0

没有更多内容

加载失败,请刷新页面

加载更多

c++队列(转自本人csdn)

#include using namespace std;int main(){char input, alphabet = ‘A’;cout << "输入最后一个大写字母: ";cin >> input;for(int i = 1; i <= (input-'A'+1); ++i)......

WinkJie
27分钟前
1
0
外观模式(Facade)

//这篇写的可以 https://www.jianshu.com/p/f71051475e32

南桥北木
46分钟前
2
0
锤子科技确认卖身,官网微博均变更所属公司

年前曾有过消息,罗永浩创办的锤子科技将被今日头条和抖音的母公司字节跳动收购。其中的部分工作人员将随专利一同成为字节跳动所属,而罗永浩本人将离开锤子科技。 今天我们终于看到了锤子科...

linux-tao
52分钟前
2
0
[json]阿里fastjson1.2.24字符串转为json对象/数组

java.lang.ClassCastException: com.alibaba.fastjson.JSONArray cannot be cast to com.alibaba.fastjson.JSONObject at com.alibaba.fastjson.JSON.parseObject(JSON.java:206) 多行要用J......

Danni3
今天
1
0
关于jenkins 构建打包的技巧

关于jenkins 构建打包的技巧 jenkins是一个专业构建平台,在各大公司内部比较受欢迎,可以自定义构建方式,以下整理一些技巧,防止以后忘记。 邮件通知 jenkins 自带邮件通知功能,但是比较单...

shzwork
今天
4
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部