我不太喜欢资源管理器中修改文件的桃色。搜索颜色主题参考我似乎无法找到覆盖..
https://code.visualstudio.com/docs/getstarted/theme-color-reference
我什至尝试禁用扩展,但我仍然看到那些预定义的颜色..我正在使用 Monokai Soda 主题,但这似乎不是在侧边栏中设置这些颜色的原因..
任何帮助表示赞赏 - 这有点让我发疯..
需要错误样式和 git 覆盖的组合,请参阅下面的答案:
"workbench.colorCustomizations": {
"list.errorForeground": "#b3e5ec",
"list.warningForeground": "#00d9ff",
"gitDecoration.modifiedResourceForeground": "#00ffb3",
"gitDecoration.untrackedResourceForeground": "#f7aeae"
}
Run Code Online (Sandbox Code Playgroud) 连接的 React Router 导出类型RouterState
非常好!但是我没有看到match
. 假设这些也可以导入并添加到减速器中,例如在RouterState
下面和减速器中使用:
const rootReducer = (history: History) => combineReducers({
count: counterReducer,
router: connectRouter(history)
})
export interface State {
count: number
router: RouterState
}
Run Code Online (Sandbox Code Playgroud)
没有它,你就不能真正this.props.match
在连接的组件中使用它来匹配参数等。对于那些使用 TypeScript 并且还需要添加到 reducer 的人,这里有解决方法吗?还是我在这里遗漏了一个关键部分?非常感谢!