File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 7
7
import { getSource , getActiveSearch , getPaneCollapse } from "../selectors" ;
8
8
import { getProjectDirectoryRoot } from "../reducers/ui" ;
9
9
import type { ThunkArgs , panelPositionType } from "./types" ;
10
+ import { getRawSourceURL } from "../utils/source" ;
10
11
11
12
import type {
12
13
ActiveSearchType ,
@@ -66,7 +67,7 @@ export function showSource(sourceId: string) {
66
67
67
68
dispatch ( {
68
69
type : "SHOW_SOURCE" ,
69
- sourceUrl : source . get ( "url" )
70
+ sourceUrl : getRawSourceURL ( source . get ( "url" ) )
70
71
} ) ;
71
72
} ;
72
73
}
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function getMenuItems(
140
140
id : "node-menu-show-source" ,
141
141
label : revealInTreeLabel ,
142
142
accesskey : revealInTreeKey ,
143
- disabled : isPrettyPrinted ,
143
+ disabled : false ,
144
144
click : ( ) => showSource ( sourceId )
145
145
} ;
146
146
Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ class Tab extends PureComponent<Props> {
114
114
}
115
115
] ;
116
116
117
- if ( ! isPrettySource ) {
118
- items . push ( {
119
- item : { ...tabMenuItems . showSource , click : ( ) => showSource ( tab ) }
120
- } ) ;
117
+ items . push ( {
118
+ item : { ...tabMenuItems . showSource , click : ( ) => showSource ( tab ) }
119
+ } ) ;
121
120
121
+ if ( ! isPrettySource ) {
122
122
items . push ( {
123
123
item : {
124
124
...tabMenuItems . prettyPrint ,
You can’t perform that action at this time.
0 commit comments