1+ /* eslint-disable max-len */
2+ import type { Webview , Progress } from "vscode" ;
13import {
24 Uri ,
35 ViewColumn ,
46 window ,
57 type WebviewPanel ,
68 type Disposable ,
79 ColorThemeKind ,
8- Webview ,
910 workspace ,
1011 ProgressLocation ,
11- Progress ,
1212 commands ,
1313} from "vscode" ;
1414import Settings from "../settings.mjs" ;
1515import Logger from "../logger.mjs" ;
16+ import type { WebviewMessage } from "./newProjectPanel.mjs" ;
1617import {
1718 getNonce ,
1819 getProjectFolderDialogOptions ,
1920 getWebviewOptions ,
20- WebviewMessage ,
2121} from "./newProjectPanel.mjs" ;
2222import which from "which" ;
2323import { existsSync } from "fs" ;
@@ -42,7 +42,7 @@ export class NewMicroPythonProjectPanel {
4242
4343 private _projectRoot ?: Uri ;
4444
45- public static createOrShow ( extensionUri : Uri , projectUri ?: Uri ) {
45+ public static createOrShow ( extensionUri : Uri , projectUri ?: Uri ) : void {
4646 const column = window . activeTextEditor
4747 ? window . activeTextEditor . viewColumn
4848 : undefined ;
@@ -194,7 +194,8 @@ export class NewMicroPythonProjectPanel {
194194 existsSync ( join ( this . _projectRoot . fsPath , data . projectName ) )
195195 ) {
196196 void window . showErrorMessage (
197- "Project already exists. Please select a different project name or root."
197+ "Project already exists. " +
198+ "Please select a different project name or root."
198199 ) ;
199200 await this . _panel . webview . postMessage ( {
200201 command : "submitDenied" ,
@@ -246,7 +247,8 @@ export class NewMicroPythonProjectPanel {
246247 projectPath . length === 0
247248 ) {
248249 void window . showErrorMessage (
249- "Failed to generate MicroPython project. Please try again and check your settings."
250+ "Failed to generate MicroPython project. " +
251+ "Please try again and check your settings."
250252 ) ;
251253
252254 return ;
@@ -311,7 +313,7 @@ print("Finished.")\r\n`;
311313 Uri . file ( filePath ) ,
312314 new TextEncoder ( ) . encode ( blinkPyCode )
313315 ) ;
314- } catch ( err ) {
316+ } catch {
315317 progress . report ( {
316318 message : "Failed" ,
317319 increment : 100 ,
0 commit comments