Skip to content

Commit

Permalink
Use CfgKey.Syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Oct 7, 2024
1 parent 826f3ef commit 6f7c8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ async function setInterpreter() {

async function selectSyntaxes() {
const path = (await window.showOpenDialog({ canSelectFiles: false, canSelectFolders: true }))?.[0].fsPath;
const t = getConfigRoot().inspect('Syntaxes');
const t = getConfigRoot().inspect(CfgKey.Syntaxes);
let v = '', f = ConfigurationTarget.Global;
if (t) {
v = ((f = ConfigurationTarget.WorkspaceFolder, t.workspaceFolderValue) ??
Expand All @@ -710,7 +710,7 @@ async function selectSyntaxes() {
}
if (path === undefined || v.toLowerCase() === path.toLowerCase())
return;
getConfigRoot().update('Syntaxes', path || undefined, f);
getConfigRoot().update(CfgKey.Syntaxes, path || undefined, f);
}

function getAHKVersion(paths: string[]): Thenable<string[]> {
Expand Down

0 comments on commit 6f7c8a5

Please sign in to comment.