Skip to content

Commit

Permalink
update Open Source Docs from Roblox internal teams
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx-open-source-docs[bot] committed Feb 6, 2025
1 parent f69638d commit da552e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ methods:
preselect: boolean?,
textEdit: {
newText: string,
insert: { start: { line: number, character: number }, ["end"]: { line: number, character: number } },
replace: { start: { line: number, character: number }, ["end"]: { line: number, character: number } },
}?
}
Expand Down Expand Up @@ -233,9 +234,7 @@ methods:
- `Response.items[n].preselect` If true, the editor sorts this completion
item ahead of all others and selects it for the user by default. No
effect if false or missing.
- `Response.items[n].textEdit` If present, accepting the completion
applies this text edit - replacing the span between the positions start
and end with newText.
- `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.
If a callback returns a malformed result or encounters an error, the
editor discards the modified Response table and uses the built-in
Expand Down
7 changes: 7 additions & 0 deletions tools/checks/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ console.time(timeMessage);
import { FileOption, getConfig } from './utils/config.js';
const config = await getConfig();

import fs from 'fs';
import path from 'path';
import { VFile } from 'vfile';
import { VFileMessage } from 'vfile-message';
Expand Down Expand Up @@ -217,6 +218,12 @@ try {
const isMarkdownFile = filePath.endsWith(FileExtension.MARKDOWN);
const isYamlFile = filePath.endsWith(FileExtension.YAML);
console.log(`::group::${Emoji.Mag} Checking`, filePathFromRepoRoot);
if (!fs.existsSync(filePath)) {
console.log(
`${Emoji.NoEntry} File does not exist: ${filePathFromRepoRoot}`
);
continue;
}
const fileContent = readFileSync(filePath);
if (
config.checkLocalizedContent &&
Expand Down

0 comments on commit da552e3

Please sign in to comment.