Skip to content

Commit dc3e543

Browse files
committed
typos and linter
1 parent 2438391 commit dc3e543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extension/src/LanguageServer/configurations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ export class CppProperties {
14601460
}
14611461

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

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

@@ -2389,7 +2389,7 @@ export class CppProperties {
23892389
}
23902390
} else {
23912391
const compileCommandsLastChanged: Date | undefined = this.compileCommandsFileWatcherFallbackTime.get(compileCommandsFile);
2392-
if ((!this.compileCommandsFiles.has(compileCommandsFile)) ||
2392+
if (!this.compileCommandsFiles.has(compileCommandsFile) ||
23932393
(compileCommandsLastChanged !== undefined && stats.mtime > compileCommandsLastChanged)) {
23942394
this.compileCommandsFileWatcherFallbackTime.set(compileCommandsFile, new Date());
23952395
this.onCompileCommandsChanged(compileCommandsFile);

0 commit comments

Comments
 (0)