Skip to content

Commit da552e3

Browse files
update Open Source Docs from Roblox internal teams
1 parent f69638d commit da552e3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

content/en-us/reference/engine/classes/ScriptEditorService.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ methods:
195195
preselect: boolean?,
196196
textEdit: {
197197
newText: string,
198+
insert: { start: { line: number, character: number }, ["end"]: { line: number, character: number } },
198199
replace: { start: { line: number, character: number }, ["end"]: { line: number, character: number } },
199200
}?
200201
}
@@ -233,9 +234,7 @@ methods:
233234
- `Response.items[n].preselect` If true, the editor sorts this completion
234235
item ahead of all others and selects it for the user by default. No
235236
effect if false or missing.
236-
- `Response.items[n].textEdit` If present, accepting the completion
237-
applies this text edit - replacing the span between the positions start
238-
and end with newText.
237+
- `Response.items[n].textEdit` If present, accepting the completion applies this text edit - inserting or replacing the span between the positions start and end with newText.
239238
240239
If a callback returns a malformed result or encounters an error, the
241240
editor discards the modified Response table and uses the built-in

tools/checks/main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ console.time(timeMessage);
44
import { FileOption, getConfig } from './utils/config.js';
55
const config = await getConfig();
66

7+
import fs from 'fs';
78
import path from 'path';
89
import { VFile } from 'vfile';
910
import { VFileMessage } from 'vfile-message';
@@ -217,6 +218,12 @@ try {
217218
const isMarkdownFile = filePath.endsWith(FileExtension.MARKDOWN);
218219
const isYamlFile = filePath.endsWith(FileExtension.YAML);
219220
console.log(`::group::${Emoji.Mag} Checking`, filePathFromRepoRoot);
221+
if (!fs.existsSync(filePath)) {
222+
console.log(
223+
`${Emoji.NoEntry} File does not exist: ${filePathFromRepoRoot}`
224+
);
225+
continue;
226+
}
220227
const fileContent = readFileSync(filePath);
221228
if (
222229
config.checkLocalizedContent &&

0 commit comments

Comments
 (0)