File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function updateOthers(others: string[]) {
3838 } ) ;
3939}
4040
41- async function loadChanges ( files : CurrentFile [ ] ) : Promise < any > {
41+ export async function loadChanges ( files : CurrentFile [ ] ) : Promise < any > {
4242 if ( ! files . length ) {
4343 return ;
4444 }
Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
22import { AtelierAPI } from "../api" ;
33import { config , FILESYSTEM_SCHEMA } from "../extension" ;
4- import { outputChannel , outputConsole } from "../utils" ;
4+ import { outputChannel , outputConsole , currentFile } from "../utils" ;
55import { DocumentContentProvider } from "../providers/DocumentContentProvider" ;
66import { ClassNode } from "../explorer/models/classesNode" ;
77import { PackageNode } from "../explorer/models/packageNode" ;
88import { RoutineNode } from "../explorer/models/routineNode" ;
99import { NodeBase } from "../explorer/models/nodeBase" ;
10- import { importAndCompile } from "./compile" ;
10+ import { importAndCompile , loadChanges } from "./compile" ;
1111
1212export let documentBeingProcessed : vscode . TextDocument = null ;
1313
@@ -55,6 +55,10 @@ class StudioActions {
5555 outputChannel . appendLine ( errorText ) ;
5656 outputChannel . show ( ) ;
5757 }
58+ if ( userAction . reload ) {
59+ const document = vscode . window . activeTextEditor . document ;
60+ loadChanges ( [ currentFile ( document ) ] ) ;
61+ }
5862 if ( config ( ) . studioActionDebugOutput ) {
5963 outputChannel . appendLine ( JSON . stringify ( userAction ) ) ;
6064 }
You can’t perform that action at this time.
0 commit comments