Skip to content

Commit c05e3eb

Browse files
committed
3.0.1
1 parent 03e82d5 commit c05e3eb

File tree

12 files changed

+69
-24
lines changed

12 files changed

+69
-24
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [3.0.1] 2025-7-29
4+
### Fixed
5+
- (Windows) Users using professional versions of Visual Studio can now set custom system includes
36

47
## [3.0.0] 2025-7-13
58
### Added

FRONT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ This is a local copy of the front facing Docs located here: https://github.com/b
5454

5555
## Updates
5656

57+
#### Version 3.0.1
58+
- (Windows) Fixed Professional version of Visual Studio not being able to set custom system includes
59+
5760
#### `Version 3`
5861
- Big code organization, new yeoman extension skeleton, strict eslint
5962
- Adds toggle button bottom right(UC) for code completion modes

eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ export default [{
3333
selector: "import",
3434
format: ["camelCase", "PascalCase"],
3535
}],
36-
36+
"@typescript-eslint/no-unused-vars": [
37+
"error",
38+
{
39+
"args": "all",
40+
"argsIgnorePattern": "^_",
41+
"caughtErrors": "all",
42+
"caughtErrorsIgnorePattern": "^_",
43+
"destructuredArrayIgnorePattern": "^_",
44+
"varsIgnorePattern": "^_",
45+
"ignoreRestSiblings": true
46+
}
47+
],
3748
curly: "warn",
3849
eqeqeq: "warn",
3950
"no-throw-literal": "warn",

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unreal-clangd",
33
"displayName": "Unreal Clangd",
44
"description": "Creates clangd project for Unreal 5.2+",
5-
"version": "3.0.0",
5+
"version": "3.0.1",
66
"engines": {
77
"vscode": "^1.99.0"
88
},

src/extension.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

2-
// Docs - explain about auto header insertion problem: "#include \"Windows/WindowsPlatform.h\" // FORCEINLINE
3-
4-
52
// Wait for 3.1.0
63
// Better way to backup *.code-workspace file settings?
74
// if changed Copy *.code-workspace to .vscode/unreal-clangd?
@@ -71,11 +68,11 @@ export async function activate(context: vscode.ExtensionContext) {
7168
console.log(tr.NOT_UNREAL_PROJECT);
7269
return;
7370
}
71+
72+
console.log(`Started ${consts.EXTENSION_NAME} ${consts.EXTENSION_VERSION}\n`);
7473

7574
await preActivate();
7675

77-
console.log(`Started ${consts.EXTENSION_NAME} ${consts.EXTENSION_VERSION}\n`);
78-
7976
let disposable = vscode.commands.registerCommand('unreal-clangd.updateCompileCommands', async () => {
8077
await updateCompileCommands();
8178
});

src/libs/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Overwrite } from './indexTypes';
88
import type { DocumentOptions, SchemaOptions, ParseOptions, CreateNodeOptions, ToStringOptions} from 'yaml';
99
import { EOL } from "node:os";
1010

11-
export const EXTENSION_VERSION = "3.0.0";
11+
export const EXTENSION_VERSION = "3.0.1";
1212
export const VALIDATE_UNREAL_VERSIONS: { min: ueHelpers.UnrealVersion, max: ueHelpers.UnrealVersion } =
1313
{ min: { major: 5, minor: 2, patch: 0 }, max: { major: 6, minor: 0, patch: 0 } }; // The unreal versions this extension was created for
1414

src/modules/addToUeSourceCC.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ async function addFilesToUESourceCompileCommands(
4545

4646
const parsedCurrentFilePath = nodePath.parse(currentDocUri.fsPath);
4747

48-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4948
const isSourceFile = consts.SOURCE_FILE_EXTENSIONS.some((value: string, _index: number, _array: string[]) => {
5049
return value === parsedCurrentFilePath.ext;
5150
});
@@ -113,7 +112,7 @@ async function addFilesToUESourceCompileCommands(
113112

114113

115114
function isPathInCompileCommands(compileCommands: CompileCommand[], pathToCheck: string) {
116-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
115+
117116
return compileCommands.some((value: CompileCommand, _index: number, _array: CompileCommand[]) => {
118117

119118
if(nodePath.relative(value.file, pathToCheck) === ""){

src/modules/completionFiles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ export async function addCompletionHelperToCompileCommands() {
215215
return;
216216
}
217217

218-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
219218
const responsePathMostEntries = Object.keys(responsePaths).reduce((previous, current, _i, _pathsArray) => {
220219
return responsePaths[current] > responsePaths[previous] ? current : previous;
221220
});
@@ -225,7 +224,7 @@ export async function addCompletionHelperToCompileCommands() {
225224
}
226225

227226
const winResponsePathMostEntries = responsePathMostEntries.replaceAll(`\\\\`, `\\`);
228-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
227+
229228
const sourceFolderCC = ccFile.find((value: CompileCommand, _index: number, _obj: CompileCommand[]) => {
230229
let hasResponsePathMostEntries = !!value.command?.includes(responsePathMostEntries) || !!value.arguments?.some((v) => {
231230
return v.includes(responsePathMostEntries);

src/modules/modifyRspFiles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async function addMissingSharedResponseFlagsToResponse(intellisenseRspFiles: Fil
137137
const moduleNameAndResponse: {moduleName: string, path: string}[] = [];
138138

139139
for (const compileCommand of compileCommands) {
140-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
140+
141141
const found = moduleFolderNameAndUris.find((value: { name: string; uri: vscode.Uri; }, _index: number, _obj: { name: string; uri: vscode.Uri; }[]) => {
142142
const modulePath = value.uri.fsPath;
143143
const ccModulePath = compileCommand.file.slice(undefined, modulePath.length); // TODO length can be problem?
@@ -153,7 +153,6 @@ async function addMissingSharedResponseFlagsToResponse(intellisenseRspFiles: Fil
153153
continue;
154154
}
155155

156-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
157156
const alreadyHasModuleName = moduleNameAndResponse.some((value: { moduleName: string; path: string; }, _index: number, _array: { moduleName: string; path: string; }[]) => {
158157
return value.moduleName === found.name;
159158
});

0 commit comments

Comments
 (0)