roblox
Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

The ScriptEditorService class inherits from Instance.

Methods

DeregisterAutocompleteCallback(name: string): null

Parameters
NameType
namestring
  • Security: PluginSecurity.
  • Thread safety: unsafe

DeregisterScriptAnalysisCallback(name: string): null

Parameters
NameType
namestring
  • Security: PluginSecurity.
  • Thread safety: unsafe

EditSourceAsyncWithRanges(script: LuaSourceContainer, newText: string, startLine: int, startCharacter: int, endLine: int, endCharacter: int): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameType
scriptLuaSourceContainer
newTextstring
startLineint
startCharacterint
endLineint
endCharacterint
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

FindScriptDocument(script: LuaSourceContainer): ScriptDocument

Parameters
NameType
scriptLuaSourceContainer
  • Security: PluginSecurity.
  • Thread safety: unsafe

ForceReloadSource(uri: string, newsrc: string): null

Parameters
NameType
uristring
newsrcstring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetEditorSource(script: LuaSourceContainer): string

Parameters
NameType
scriptLuaSourceContainer
  • Security: PluginSecurity.
  • Thread safety: unsafe

GetScriptDocuments(): Instances

This class member is missing documentation. Create or add to its subpage at Class:ScriptEditorService/GetScriptDocuments.
  • Security: PluginSecurity.
  • Thread safety: unsafe

IsAutocompleteCallbackRegistered(name: string): bool

Parameters
NameType
namestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

IsScriptAnalysisCallbackRegistered(name: string): bool

Parameters
NameType
namestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

OpenScriptDocumentAsync(script: LuaSourceContainer, options: Dictionary = nil): Tuple

  • YieldsThis function can yield the script it is used in.
Parameters
NameTypeDefault
scriptLuaSourceContainer
optionsDictionarynil
  • Security: PluginSecurity.
  • Thread safety: unsafe

RegisterAutocompleteCallback(name: string, priority: int, callbackFunction: Function): null

Parameters
NameType
namestring
priorityint
callbackFunctionFunction
  • Security: PluginSecurity.
  • Thread safety: unsafe

RegisterScriptAnalysisCallback(name: string, priority: int, callbackFunction: Function): null

Parameters
NameType
namestring
priorityint
callbackFunctionFunction
  • Security: PluginSecurity.
  • Thread safety: unsafe

StripComments(code: string): string

Parameters
NameType
codestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

UpdateSourceAsync(script: LuaSourceContainer, callback: Function): null

  • YieldsThis function can yield the script it is used in.
Parameters
NameType
scriptLuaSourceContainer
callbackFunction
  • Security: PluginSecurity.
  • Thread safety: unsafe

Events

TextDocumentDidChange(document: ScriptDocument, changesArray: Variant)

Parameters
NameType
documentScriptDocument
changesArrayVariant
  • Security: PluginSecurity.
  • Thread safety: unsafe

TextDocumentDidClose(oldDocument: ScriptDocument)

Parameters
NameType
oldDocumentScriptDocument
  • Security: PluginSecurity.
  • Thread safety: unsafe

TextDocumentDidOpen(newDocument: ScriptDocument)

Parameters
NameType
newDocumentScriptDocument
  • Security: PluginSecurity.
  • Thread safety: unsafe

Removed members

External links