@@ -656,9 +656,10 @@ export class NewProjectPanel {
656656 this . dispose ( ) ;
657657
658658 // required to support backslashes in macOS/Linux folder names
659- const targetPath = process . platform !== "win32"
660- ? this . _projectRoot . fsPath
661- : this . _projectRoot . fsPath . replaceAll ( "\\" , "/" ) ;
659+ const targetPath =
660+ process . platform !== "win32"
661+ ? this . _projectRoot . fsPath
662+ : this . _projectRoot . fsPath . replaceAll ( "\\" , "/" ) ;
662663
663664 const result = await window . withProgress (
664665 {
@@ -668,28 +669,29 @@ export class NewProjectPanel {
668669 } ,
669670 async progress => {
670671 // download and install selected example
671- const result = await setupExample (
672- example ,
673- targetPath
674- ) ;
675-
672+ const result = await setupExample ( example , targetPath ) ;
673+
676674 if ( result ) {
677- this . _logger . debug ( `Successfully downloaded ${ example . name } example.` ) ;
678-
675+ this . _logger . debug (
676+ `Successfully downloaded ${ example . name } example.`
677+ ) ;
678+
679679 progress . report ( {
680680 increment : 100 ,
681681 message : `Successfully downloaded ${ example . name } example.` ,
682682 } ) ;
683-
683+
684684 return true ;
685685 }
686-
687- this . _logger . error ( `Failed to download ${ example . name } example.` ) ;
688-
686+
687+ this . _logger . error (
688+ `Failed to download ${ example . name } example.`
689+ ) ;
690+
689691 progress . report ( {
690692 increment : 100 ,
691693 } ) ;
692-
694+
693695 return false ;
694696 }
695697 ) ;
@@ -775,7 +777,7 @@ export class NewProjectPanel {
775777 ) ;
776778 }
777779 break ;
778- case ' updateSetting' :
780+ case " updateSetting" :
779781 {
780782 const key = message . key as string ;
781783 const value = message . value as boolean ;
@@ -1551,7 +1553,8 @@ export class NewProjectPanel {
15511553 window . activeColorTheme . kind === ColorThemeKind . HighContrast
15521554 ? "dark"
15531555 : "light" ;
1554- const riscvDefaultSvgUri = defaultTheme === "dark" ? riscvWhiteSvgUri : riscvBlackSvgUri ;
1556+ const riscvDefaultSvgUri =
1557+ defaultTheme === "dark" ? riscvWhiteSvgUri : riscvBlackSvgUri ;
15551558
15561559 this . _versionBundlesLoader = new VersionBundlesLoader ( this . _extensionUri ) ;
15571560
@@ -1746,7 +1749,9 @@ export class NewProjectPanel {
17461749 const riscvColorSvgUri = "${ riscvColorSvgUri . toString ( ) } ";
17471750 </script>
17481751 </head>
1749- <body class="scroll-smooth w-screen${ defaultTheme === "dark" ? " dark" : "" } ">
1752+ <body class="scroll-smooth w-screen${
1753+ defaultTheme === "dark" ? " dark" : ""
1754+ } ">
17501755 <div id="above-nav" class="container max-w-6xl mx-auto flex justify-between items-center w-full sticky top-0 z-10 pl-5 h-5">
17511756 </div>
17521757 <div id="nav-overlay" class="overlay hidden md:hidden inset-y-0 right-0 w-auto z-50 overflow-y-auto ease-out bg-slate-400 dark:bg-slate-800 drop-shadow-lg">
@@ -1877,7 +1882,7 @@ export class NewProjectPanel {
18771882 </div>
18781883 </div>`
18791884 : `<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-4">
1880- Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import. Swift Projects aren't supported at the moment.
1885+ Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import. Only C/C++ projects are supported at the moment.
18811886 </h3>`
18821887 }
18831888 <div class="mt-6 mb-4">
@@ -2237,10 +2242,8 @@ export class NewProjectPanel {
22372242 <div class="flex items-stretch space-x-4">
22382243 <div class="flex items-center px-4 py-2 border border-gray-200 rounded dark:border-gray-700">
22392244 <input id="use-cmake-tools-cb" type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 outline-none focus:ring-0 focus:ring-offset-5 dark:bg-gray-700 dark:border-gray-600" ${
2240- defaultUseCmakeTools
2241- ? 'checked'
2242- : ''
2243- } >
2245+ defaultUseCmakeTools ? "checked" : ""
2246+ } >
22442247 <label for="use-cmake-tools-cb" class="w-full py-4 ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">Enable CMake-Tools extension integration</label>
22452248 </div>
22462249 </div>
0 commit comments