We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7440e0d commit 081aab7Copy full SHA for 081aab7
extensions/ql-vscode/src/run-queries.ts
@@ -226,7 +226,9 @@ async function convertToQlPath(filePath: string): Promise<string> {
226
const fileName = path.basename(filePath);
227
const fileNames = await promisify<string, string[]>(fs.readdir)(dir);
228
for (const name of fileNames) {
229
- // leave the locale argument empty so that the default OS locale is used.
+ // Leave the locale argument empty so that the default OS locale is used.
230
+ // We do this because this operation works on filesystem entities, which
231
+ // use the os locale, regardless of the locale of the running VS Code instance.
232
if (fileName.localeCompare(name, undefined, { sensitivity: 'accent' }) === 0) {
233
return path.join(dir, name);
234
}
0 commit comments