File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 4343 "preScripts" : " lint,build" ,
4444 "skipPublish" : true ,
4545 "releaseAssets" : " dist/*" ,
46- "noVersionPrefix" : true
46+ "noVersionPrefix" : true ,
47+ "branch" : " master"
4748 }
4849}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import CodeFilesPlugin from "./codeFilesPlugin";
77export class CodeEditorView extends TextFileView {
88 static i = 0 ;
99 id = CodeEditorView . i ++ ;
10- value : string = "" ;
10+ value = "" ;
1111 iframe : HTMLIFrameElement ;
1212
1313 constructor ( leaf : WorkspaceLeaf , private plugin : CodeFilesPlugin ) {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class CreateCodeFileModal extends Modal {
6262 async complete ( ) {
6363 this . close ( ) ;
6464 const parent = ( this . parent instanceof TFile ? this . parent . parent : this . parent ) as TFolder ;
65- let newPath = `${ parent . path } /${ this . fileName } .${ this . fileExtension } ` ;
65+ const newPath = `${ parent . path } /${ this . fileName } .${ this . fileExtension } ` ;
6666 const existingFile = this . app . vault . getAbstractFileByPath ( normalizePath ( newPath ) ) ;
6767 if ( existingFile ) {
6868 new Notice ( "File already exists" ) ;
You can’t perform that action at this time.
0 commit comments