Skip to content

Commit 5325e6d

Browse files
authored
Merge pull request #16 from ahnafnafee/feature-fixes
2 parents 3f360e2 + 819ba4e commit 5325e6d

26 files changed

Lines changed: 2433 additions & 5232 deletions

.eslintrc.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,31 @@
88
"plugins": [
99
"@typescript-eslint"
1010
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
1115
"rules": {
12-
"@typescript-eslint/class-name-casing": "warn",
13-
"@typescript-eslint/semi": "warn",
16+
"@typescript-eslint/naming-convention": [
17+
"warn",
18+
{
19+
"selector": "class",
20+
"format": [
21+
"PascalCase"
22+
]
23+
}
24+
],
1425
"curly": "warn",
1526
"eqeqeq": "warn",
1627
"no-throw-literal": "warn",
17-
"semi": "off"
18-
}
19-
}
28+
"@typescript-eslint/no-explicit-any": "off",
29+
"@typescript-eslint/no-require-imports": "off",
30+
"@typescript-eslint/no-inferrable-types": "off",
31+
"@typescript-eslint/no-empty-function": "off"
32+
},
33+
"ignorePatterns": [
34+
"out",
35+
"dist",
36+
"**/*.d.ts"
37+
]
38+
}
Lines changed: 43 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,48 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
1+
# CodeQL security analysis
122
name: "CodeQL"
133

144
on:
15-
push:
16-
branches: [ master ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ master ]
20-
schedule:
21-
- cron: '34 1 * * 3'
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: "34 1 * * 3"
2211

2312
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
31-
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'javascript' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37-
# Learn more:
38-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39-
40-
steps:
41-
- name: Checkout repository
42-
uses: actions/checkout@v2
43-
44-
# Initializes the CodeQL tools for scanning.
45-
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
47-
with:
48-
languages: ${{ matrix.language }}
49-
# If you wish to specify custom queries, you can do so here or in a config file.
50-
# By default, queries listed here will override any specified in a config file.
51-
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53-
54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below)
56-
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
58-
59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 https://git.io/JvXDl
61-
62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
65-
66-
#- run: |
67-
# make bootstrap
68-
# make release
69-
70-
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: ["javascript-typescript"]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 22
39+
cache: "yarn"
40+
41+
- name: Install dependencies
42+
run: yarn install --frozen-lockfile
43+
44+
- name: Build
45+
run: yarn compile
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v3

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build & Publish Extension
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: ["main", "master"]
66

77
jobs:
88
build:
@@ -11,16 +11,16 @@ jobs:
1111
timeout-minutes: 10
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Use Node.js 20
14+
- name: Use Node.js 22
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
18-
cache: "npm"
17+
node-version: 22
18+
cache: "yarn"
1919
registry-url: https://registry.npmjs.org/
2020
- name: Install dependencies
2121
run: |
2222
npm install -g @vscode/vsce
23-
npm ci
23+
yarn install --frozen-lockfile
2424
- name: Get NPM Version
2525
id: package-version
2626
uses: martinbeentjes/npm-get-version-action@v1.3.1
@@ -34,7 +34,7 @@ jobs:
3434
if-no-files-found: error
3535
- name: Create release with artifact
3636
if: ${{ success() && steps.package-version.outputs.current-version }}
37-
uses: softprops/action-gh-release@v1
37+
uses: softprops/action-gh-release@v2
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.github_token }}
4040
with:

.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore VS Code extension engine warnings
2+
--ignore-engines

CHANGELOG.md

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

3+
## [0.5.0] - 2024-12-15
4+
5+
### New Features
6+
7+
- **Custom Executable Paths**: Configure paths to `ps2pdf`, `pdftocairo`, and `pdfinfo` in VS Code settings. Useful for conda environments or non-standard installations.
8+
- **Multi-Page Navigation**: Navigate through multi-page PostScript documents with Prev/Next buttons and page input.
9+
- **GhostScript Console Output**: View output from `==`, `print`, and other operators in the VS Code Output panel.
10+
- **Theme Support**: Automatic light/dark mode matching VS Code theme.
11+
12+
### Improvements
13+
14+
- Refactored codebase into modular components for easier maintenance
15+
- Simplified webview with cleaner UI and removed Bootstrap dependency
16+
- Updated ESLint configuration for modern TypeScript
17+
- Added TESTING.md for local development instructions
18+
- Improved README with better documentation and SEO
19+
320
## [0.4.4] - 2024-09-23
421

522
- Fixed README issues

0 commit comments

Comments
 (0)