File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 5454
5555- Remove chapter number of HTML head title when ` number-sections ` is ` false ` (#3304 ).
5656
57+ ## Preview
58+
59+ - Correct redirect for VS Code Server (#3352 ) (Thank you, @benz0li !)
60+
5761## Miscellaneous
5862
5963- Work around pandoc strict checking of ` number-offset ` type. ([ #3126 ] ( https://github.com/quarto-dev/quarto-cli/issues/3126 ) )
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ import {
7272 isJupyterHubServer ,
7373 isRStudioServer ,
7474 isRStudioWorkbench ,
75+ isVSCodeServer ,
76+ vsCodeServerProxyUri ,
7577} from "../../core/platform.ts" ;
7678import { isJupyterNotebook } from "../../core/jupyter/jupyter.ts" ;
7779import { watchForFileChanges } from "../../core/watch.ts" ;
@@ -690,6 +692,9 @@ function pdfFileRequestHandler(
690692 if ( new URL ( req . url ) . pathname === "/" ) {
691693 const url = isRStudioWorkbench ( )
692694 ? await rswURL ( port , kPdfJsInitialPath )
695+ : isVSCodeServer ( )
696+ ? vsCodeServerProxyUri ( ) ! . replace ( "{{port}}" , `${ port } ` )
697+ + kPdfJsInitialPath
693698 : "/" + kPdfJsInitialPath ;
694699 return Promise . resolve ( serveRedirect ( url ) ) ;
695700 } else {
You can’t perform that action at this time.
0 commit comments