Skip to content

Commit

Permalink
typos and linter
Browse files Browse the repository at this point in the history
  • Loading branch information
yiftahw committed Dec 13, 2024
1 parent 2438391 commit dc3e543
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extension/src/LanguageServer/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ export class CppProperties {
}

// Configuration.compileCommands is allowed to be defined as a string in the schema, but we send an array to the language server.
// For having a predictable behvaior, we convert it here to an array of strings.
// For having a predictable behavior, we convert it here to an array of strings.
for (let i: number = 0; i < newJson.configurations.length; i++) {
newJson.configurations[i].compileCommands = this.forceCompileCommandsAsArray(<any>newJson.configurations[i].compileCommands);
}
Expand Down Expand Up @@ -1815,7 +1815,7 @@ export class CppProperties {
const currentConfiguration: Configuration = configurations.configurations[this.CurrentConfigurationIndex];

// Configuration.compileCommands is allowed to be defined as a string in the schema, but we send an array to the language server.
// For having a predictable behvaior, we convert it here to an array of strings.
// For having a predictable behavior, we convert it here to an array of strings.
// Squiggles are still handled for both cases.
currentConfiguration.compileCommands = this.forceCompileCommandsAsArray(<any>currentConfiguration.compileCommands);

Expand Down Expand Up @@ -2389,7 +2389,7 @@ export class CppProperties {
}
} else {
const compileCommandsLastChanged: Date | undefined = this.compileCommandsFileWatcherFallbackTime.get(compileCommandsFile);
if ((!this.compileCommandsFiles.has(compileCommandsFile)) ||
if (!this.compileCommandsFiles.has(compileCommandsFile) ||
(compileCommandsLastChanged !== undefined && stats.mtime > compileCommandsLastChanged)) {
this.compileCommandsFileWatcherFallbackTime.set(compileCommandsFile, new Date());
this.onCompileCommandsChanged(compileCommandsFile);
Expand Down

0 comments on commit dc3e543

Please sign in to comment.