Roblox API Reference

ScriptEditorService On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
This item is not replicated. Its interface does not cross the network boundary.

Tags: [NotCreatable, Service, NotReplicated]

Inherits (1)

Member index (14)

Type Member History
null DeregisterAutocompleteCallback (string name) 546 573
null DeregisterScriptAnalysisCallback (string name) 567 573
Tuple EditSourceAsyncWithRanges (LuaSourceContainer script, string newText, int startLine, int startCharacter, int endLine, int endCharacter) 592
ScriptDocument FindScriptDocument (LuaSourceContainer script) 529 532
null ForceReloadSource (string uri, string newsrc) 569 573
string GetEditorSource (LuaSourceContainer script) 575
Objects GetScriptDocuments () 539
Tuple OpenScriptDocumentAsync (LuaSourceContainer script) 542
null RegisterAutocompleteCallback (string name, int priority, Function callbackFunction) 545 546 573
null RegisterScriptAnalysisCallback (string name, int priority, Function callbackFunction) 567 573
null UpdateSourceAsync (LuaSourceContainer script, Function callback) 592 597
TextDocumentDidChange (ScriptDocument document, Variant changesArray) 532
TextDocumentDidClose (ScriptDocument oldDocument) 532
TextDocumentDidOpen (ScriptDocument newDocument) 532
57 members inherited from Instance

Removed member index (1)

Type Member History
void RegisterLSPCallback (LSPMethodType methodToOverride, Function callbackFunction) 545

History

Members

DeregisterAutocompleteCallback On DevHub

Name Type Default
name string none

History

DeregisterScriptAnalysisCallback On DevHub

Name Type Default
name string none

History

EditSourceAsyncWithRanges On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
script LuaSourceContainer none
newText string none
startLine int none
startCharacter int none
endLine int none
endCharacter int none

History

Tags: [Yields]

FindScriptDocument On DevHub

Name Type Default
script LuaSourceContainer none

History

ForceReloadSource On DevHub

Name Type Default
uri string none
newsrc string none

History

GetEditorSource On DevHub

Name Type Default
script LuaSourceContainer none

History

GetScriptDocuments On DevHub

Name Type Default
No parameters.

History

OpenScriptDocumentAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
script LuaSourceContainer none

History

Tags: [Yields]

RegisterAutocompleteCallback On DevHub

Name Type Default
name string none
priority int none
callbackFunction Function none

History

RegisterScriptAnalysisCallback On DevHub

Name Type Default
name string none
priority int none
callbackFunction Function none

History

TextDocumentDidChange On DevHub

Name Type Default
document ScriptDocument none
changesArray Variant none

History

TextDocumentDidClose On DevHub

Name Type Default
oldDocument ScriptDocument none

History

TextDocumentDidOpen On DevHub

Name Type Default
newDocument ScriptDocument none

History

UpdateSourceAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
script LuaSourceContainer none
callback Function none

History

Tags: [Yields]

Removed members

RegisterLSPCallback

Name Type Default
methodToOverride LSPMethodType none
callbackFunction Function none

History

Relevant classes (2)