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[]) {
38
38
} ) ;
39
39
}
40
40
41
- async function loadChanges ( files : CurrentFile [ ] ) : Promise < any > {
41
+ export async function loadChanges ( files : CurrentFile [ ] ) : Promise < any > {
42
42
if ( ! files . length ) {
43
43
return ;
44
44
}
Original file line number Diff line number Diff line change 1
1
import * as vscode from "vscode" ;
2
2
import { AtelierAPI } from "../api" ;
3
3
import { config , FILESYSTEM_SCHEMA } from "../extension" ;
4
- import { outputChannel , outputConsole } from "../utils" ;
4
+ import { outputChannel , outputConsole , currentFile } from "../utils" ;
5
5
import { DocumentContentProvider } from "../providers/DocumentContentProvider" ;
6
6
import { ClassNode } from "../explorer/models/classesNode" ;
7
7
import { PackageNode } from "../explorer/models/packageNode" ;
8
8
import { RoutineNode } from "../explorer/models/routineNode" ;
9
9
import { NodeBase } from "../explorer/models/nodeBase" ;
10
- import { importAndCompile } from "./compile" ;
10
+ import { importAndCompile , loadChanges } from "./compile" ;
11
11
12
12
export let documentBeingProcessed : vscode . TextDocument = null ;
13
13
@@ -55,6 +55,10 @@ class StudioActions {
55
55
outputChannel . appendLine ( errorText ) ;
56
56
outputChannel . show ( ) ;
57
57
}
58
+ if ( userAction . reload ) {
59
+ const document = vscode . window . activeTextEditor . document ;
60
+ loadChanges ( [ currentFile ( document ) ] ) ;
61
+ }
58
62
if ( config ( ) . studioActionDebugOutput ) {
59
63
outputChannel . appendLine ( JSON . stringify ( userAction ) ) ;
60
64
}
You can’t perform that action at this time.
0 commit comments