Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed local file hinting not working for folder names containing dash #146

Merged
merged 7 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x]
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [19.6.0]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
CI: true
steps:
# - name: Set git config
# if: runner.os == 'Windows'
# shell: bash
# run: git config --global core.autocrlf true

- uses: actions/checkout@v2

- name: echo github.ref
Expand All @@ -36,12 +31,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Use NPM 8
run: npm install -g npm@8.3.1 # lock to 8.3.1 until actions/setup-node#411 and npm/cli#4341 are fixed
- name: Install NPM 9.4.0
run: npm install -g npm@9.4.0 # lock to 9.4.0 until actions/setup-node#411 and npm/cli#4341 are fixed

- name: Set version number of package.json and build artifact
id: version_step
if: runner.os == 'macOS'
if: runner.os == 'ubuntu-latest'
env:
RUN_NUMBER: ${{ github.run_number }}
run: |
Expand Down Expand Up @@ -76,17 +71,13 @@ jobs:
- name: Install dependencies
run: "npm ci"

- name: Lint, compile and test
run: "node node_modules/gulp/bin/gulp.js lint test"
if: runner.os != 'macOS'

- name: Lint, compile, test and package
run: "node node_modules/gulp/bin/gulp.js package"
if: runner.os == 'macOS'
if: runner.os == 'ubuntu-latest'

- name: Publish code coverage report
uses: codecov/codecov-action@v1
if: runner.os == 'macOS'
if: runner.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: "**/coverage/*.json"
Expand All @@ -95,7 +86,7 @@ jobs:

- name: Upload artifact
uses: actions/upload-artifact@v2
if: runner.os == 'macOS'
if: runner.os == 'ubuntu-latest'
with:
name: vrealize-developer-tools-${{steps.version_step.outputs.version_build}}.vsix
path: "*.vsix"
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class CompletionPrefixPattern {
const prefixPatterns = [
new CompletionPrefixPattern(
CompletionPrefixKind.MODULE_IMPORT,
/System\.getModule\s*\(["']((?:[a-zA-Z_$][\w$]*\.)*)([a-zA-Z_$]?[\w$]*)$/, // https://regex101.com/r/bsVfwk/1
/System\.getModule\s*\(["']((?:[a-zA-Z_$][-\w$]*\.)*)([a-zA-Z_$]?[\w$]*)$/, // https://regex101.com/r/WKCK3Y/1
/Class\.load\s*\(["']((?:[a-zA-Z_$][\w$]*\.)*)([a-zA-Z_$]?[\w$]*)$/ // https://regex101.com/r/90B9Db/1
),

Expand Down
Loading