-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code hot reloading #2101
base: master
Are you sure you want to change the base?
Code hot reloading #2101
Conversation
|
||
_compiledJson = json; | ||
var rootPath = Path.GetFullPath(Path.GetDirectoryName(jsonPath)!); | ||
var resources = _compiledJson.Resources ?? Array.Empty<string>(); |
Check notice
Code scanning / InspectCode
Use collection expression syntax Note
_objectTree.LoadJson(json); | ||
DreamProcNative.SetupNativeProcs(_objectTree); | ||
|
||
} |
Check warning
Code scanning / InspectCode
Incorrect blank lines: Incorrect number of blank lines near braces Warning
requestHotReloadBytecode.RespondError(client, "No file provided for a hot reload"); | ||
return; | ||
} | ||
_sawmill.Debug($"Debug adapter triggered bytecode hot reload for file {requestHotReloadBytecode.Arguments.FilePath}"); |
Check warning
Code scanning / InspectCode
Incorrect blank lines: Blank lines are missing elsewhere Warning
Allows the vscode extension to trigger recompile and reload object and proc defs
OpenDreamProject/vscode-opendream#20