Skip to content

Commit e69f542

Browse files
committed
Fixing a TS error that is not found in compile
1 parent c704a6c commit e69f542

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/build.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ jobs:
6363
uses: actions/upload-artifact@v4
6464
with:
6565
name: ${{ github.event.repository.name}}.vsix
66-
path: |
67-
"**/*.vsix"
66+
path: ./*.vsix
6867

6968
- name: 🏷️ Tag and Release
7069
id: tag_release
@@ -73,5 +72,4 @@ jobs:
7372
body: Release ${{ steps.nbgv.outputs.SimpleVersion }}
7473
tag_name: ${{ steps.nbgv.outputs.SimpleVersion }}
7574
generate_release_notes: true
76-
files: |
77-
**/*.vsix
75+
files: ./*.vsix

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"editor/title": [
116116
{
117117
"command": "resx-editor.openInTextEditor",
118-
"when": "activeCustomEditorId == 'resx-editor.editor' && activeEditorIsNotPreview == false",
118+
"when": "activeCustomEditorId == 'resx-editor.editor'",
119119
"group": "navigation@1"
120120
},
121121
{
@@ -213,4 +213,4 @@
213213
"resx": "^2.0.4",
214214
"xmlbuilder2": "^3.1.1"
215215
}
216-
}
216+
}

src/utilities/generateCode.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ export async function generateAndUpdateDesignerFile(document: vscode.TextDocumen
7676

7777
// Get the existing namespace if the Designer file exists
7878
const designerPath = document.uri.fsPath.replace('.resx', '.Designer.cs');
79-
const existingNamespace = await extractExistingNamespace(designerPath);
8079

8180
// Generate and update the Designer.cs file
8281
const designerUri = vscode.Uri.file(designerPath);
83-
const designerCode = generateDesignerCode(document.uri.fsPath, parsedJson, accessLevel, existingNamespace);
82+
const designerCode = generateDesignerCode(document.uri.fsPath, parsedJson, accessLevel);
8483

8584
try {
8685
await vscode.workspace.fs.stat(designerUri);

0 commit comments

Comments
 (0)