Skip to content

Commit aedd803

Browse files
authored
1 parent 4a39596 commit aedd803

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/editor/contrib/smartSelect/test/browser/smartSelect.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ suite('SmartSelect', () => {
211211

212212
async function assertRanges(provider: SelectionRangeProvider, value: string, ...expected: IRange[]): Promise<void> {
213213
const index = value.indexOf('|');
214-
value = value.replace('|', '');
214+
value = value.replace('|', ''); // CodeQL [SM02383] js/incomplete-sanitization this is purpose only the first | character
215215

216216
const model = modelService.createModel(value, new StaticLanguageSelector(languageId), URI.parse('fake:lang'));
217217
const pos = model.getPositionAt(index);

src/vs/workbench/api/worker/extHostExtensionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class ExtHostExtensionService extends AbstractExtHostExtensionService {
8383
const fullSource = `${source}\n//# sourceURL=${sourceURL}`;
8484
let initFn: Function;
8585
try {
86-
initFn = new Function('module', 'exports', 'require', fullSource);
86+
initFn = new Function('module', 'exports', 'require', fullSource); // CodeQL [SM01632] js/eval-call there is no alternative until we move to ESM
8787
} catch (err) {
8888
if (extensionId) {
8989
console.error(`Loading code for extension ${extensionId} failed: ${err.message}`);

0 commit comments

Comments
 (0)