File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 33 "displayName" : " Pretty TypeScript Errors" ,
44 "publisher" : " YoavBls" ,
55 "description" : " Make TypeScript errors prettier and more human-readable in VSCode" ,
6- "version" : " 0.8.2 " ,
6+ "version" : " 0.8.3 " ,
77 "icon" : " assets/icon.png" ,
88 "repository" : {
99 "type" : " git" ,
6161 "views" : {
6262 "prettyTsErrors" : [
6363 {
64- "id" : " prettyTsErrors.markdownPreview " ,
64+ "id" : " prettyTsErrors.sidePanel " ,
6565 "icon" : " ./assets/ribbon.svg" ,
6666 "name" : " Side Panel" ,
67- "when" : " prettyTsErrors.sidebarEnabled" ,
68- "type" : " webview" ,
69- "visibility" : " hidden"
67+ "type" : " webview"
7068 }
7169 ]
7270 },
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ export function registerPinError(context: ExtensionContext) {
1919 const viewProvider = getViewProvider ( ) ;
2020 await viewProvider ?. pinDiagnostic ( range ) ;
2121
22- await commands . executeCommand ( "prettyTsErrors.markdownPreview.focus" ) ;
22+ try {
23+ await commands . executeCommand (
24+ "workbench.view.extension.prettyTsErrors"
25+ ) ;
26+ } catch { }
2327 } )
2428 )
2529 ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ export function registerShowErrorInSidebar(context: ExtensionContext) {
1717 }
1818 }
1919
20- await commands . executeCommand ( "prettyTsErrors.markdownPreview.focus" ) ;
20+ try {
21+ await commands . executeCommand (
22+ "workbench.view.extension.prettyTsErrors"
23+ ) ;
24+ } catch { }
2125 } )
2226 )
2327 ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export function registerWebviewViewProvider(context: ExtensionContext) {
6060 ) ;
6161 context . subscriptions . push (
6262 vscode . window . registerWebviewViewProvider (
63- "prettyTsErrors.markdownPreview " ,
63+ "prettyTsErrors.sidePanel " ,
6464 viewProviderInstance
6565 ) ,
6666 vscode . languages . onDidChangeDiagnostics ( ( ) => updateHasErrorsContext ( ) ) ,
You can’t perform that action at this time.
0 commit comments