Skip to content

Commit e6326e8

Browse files
authored
Merge pull request #15 from mskelton/feature/decorations-support
New features and improvements
2 parents ab88742 + cdb44a9 commit e6326e8

30 files changed

+9391
-2535
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ jobs:
77
- uses: actions/checkout@v3
88
- uses: actions/setup-node@v3
99
with:
10-
node-version: 16
10+
node-version: 18
1111
- run: npm ci
1212
- run: npm run format:check
1313
- run: npm run lint
14+
- run: npm run test
1415
- run: npm run compile -- --noEmit
1516
release:
1617
needs: test
@@ -19,7 +20,7 @@ jobs:
1920
- uses: actions/checkout@v3
2021
- uses: actions/setup-node@v3
2122
with:
22-
node-version: 16
23+
node-version: 18
2324
- run: npm ci
2425
- run: npx semantic-release
2526
env:

.vscode/launch.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"name": "Run Extension",
66
"type": "extensionHost",
77
"request": "launch",
8-
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
8+
"args": [
9+
"--disable-extensions",
10+
"--extensionDevelopmentPath=${workspaceFolder}"
11+
],
912
"outFiles": ["${workspaceFolder}/out/**/*.js"],
1013
"preLaunchTask": "${defaultBuildTask}"
1114
}

.vscodeignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
.vscode/**
2+
.github/**
23
src/**
34
images/**
5+
coverage/**
6+
node_modules/**
7+
8+
locales/bundle.l10n.jsonc
9+
10+
.eslintignore
11+
.prettierignore
412
.gitignore
5-
**/tsconfig.json
6-
**/.eslintrc.json
7-
**/*.map
8-
**/*.ts
13+
14+
jest.config.js
15+
tsconfig.json
16+
17+
out/**
18+
!out/extension.js

assets/icon.png

-2.86 KB
Loading

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
maxConcurrency: 20,
4+
modulePathIgnorePatterns: ["/out/"],
5+
preset: "ts-jest",
6+
testEnvironment: "node",
7+
}

locales/bundle.l10n.jsonc

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Use this file as a reference only. It is not bundled in the released package.
2+
// (1) You only need to define the key-value if you actually need to translate the term or phrase;
3+
// (2) If you need to correct any original terms (in english), modify the file that uses them directly (and all actual locale keys).
4+
// (3) If you want to create a new locale support, create a new `bundle.l10n.{locale}.json` file.
5+
6+
{
7+
// CodeAction.ts related.
8+
"major": "", // The package selected will be major updating (eg. "Update $packageName to 2.0 (major)").
9+
"excluding major": "", // The packages update will not affects major versions (eg. "Update 5 packages (excluding major)").
10+
11+
"Update {0} selected packages": "", // User have selected {0} packages to be updated.
12+
"Update all {0} packages": "", // Possibility to update all packages at the same time.
13+
"Update \"{0}\" to {1}": "", // The user chose a single package to upgrade (eg. "Update $packageName to $version").
14+
15+
// Command.ts related.
16+
"Save your package.json and run your package manager install command to finish updating packages.": "", // Notification balloon to update via the user's package manager.
17+
"Do it for me!": "", // Notification action to save package.json and run npm install.
18+
19+
"Installing selected packages...": "", // Displayed in the log during the process of installing new versions.
20+
"Done.": "", // Indicates that the process completed (either success or failure).
21+
22+
"Packages installed successfully!": "", // Notification balloon on success.
23+
"Failed to install packages. Check the output console.": "", // Notification balloon on failure.
24+
25+
// Diagnostic.ts related.
26+
"Invalid package version.": "", // The package version entered by the user is invalid (eg. `{ "@package/name": "abc" }`).
27+
"Package version not available.": "", // The package version entered by the was never released (even considering pre-releases).
28+
"Package \"{0}\" pending installation: {1}.": "", // The package has been declared as a dependency, but no version has yet been installed.
29+
"Newer version of \"{0}\" is available: {1}.": "", // New version available which can be used by user.
30+
"Pre-release version of \"{0}\".": "", // The defined user version is a pre-release, and there is no better alternative yet.
31+
"Ready-to-install package \"{0}\" at version {1}. Just run your package manager install command.": "", // User must run the `npm install` to install new packages based on version defined.
32+
"Security advisory: this package version has a known flaw level {0}/{1}.": "", // Diagnostic warning when a security advisory exists.
33+
"Please upgrade to version {0} or higher.": "", // Suggested upgrade to a version above.
34+
"No fix available yet.": "", // The flaw is not yet known to be resolved in a future release.
35+
"If possible, downgrade to version {0}.": "", // But it is possible to downgrade to a version where the flaw does not exist.
36+
"Details": "", // Link where you can learn more about the flaw.
37+
"Install package": "", // Forces the display of the notification suggesting to update the package (one package to be installed).
38+
"Install packages": "", // Forces the display of the notification suggesting to update the package (two or more packages to be installed).
39+
40+
// DocumentDecoration.ts related.
41+
"Update available:": "", // The package has already been installed and has a new version available.
42+
"Latest version:": "", // The package was never installed, and the user's version is not the latest available.
43+
"install pending": "", // The informed version has not yet been installed by the user.
44+
"already installed, just formalization": "", // The version informed by the user is already installed, only a version formalization of package.json will be needed.
45+
"attention: major update!": "", // Warns the user that a major update will take place.
46+
"pre-release": "", // Warns the user that this is a pre-release version.
47+
"Now run your package manager install command.": "", // User must run the `npm install` to install new packages based on version defined.
48+
"Security advisory": "", // Informs that the package has a security advisory.
49+
"low": "", // Security advisory level.
50+
"moderate": "", // Security advisory level.
51+
"high": "", // Security advisory level.
52+
"critical": "" // Security advisory level.
53+
}

locales/bundle.l10n.pt-br.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"excluding major": "exceto major",
3+
4+
"Update \"{0}\" to {1}": "Atualizar \"{0}\" para {1}",
5+
"Update {0} selected packages": "Atualizar as {0} dependências selecionadas",
6+
"Update all {0} packages": "Atualizar todas as {0} dependências",
7+
8+
"Save your package.json and run your package manager install command to finish updating packages.": "Salve o package.json e use o seu gerenciador de dependências para concluir a instalação de suas dependências.",
9+
"Do it for me!": "Faça para mim!",
10+
11+
"Installing selected packages...": "Instalando as dependências selecionadas...",
12+
"Done.": "Concluído.",
13+
14+
"Packages installed successfully!": "As dependências foram instaladas com sucesso!",
15+
"Failed to install packages. Check the output console.": "Ocorreu um erro ao instalar as dependências. Verifique os registros de saída.",
16+
17+
"Invalid package version.": "Versão inválida para dependência.",
18+
"Package version not available.": "Versão não disponibilizada por este pacote.",
19+
"Package \"{0}\" pending installation: {1}.": "Dependência \"{0}\" com instalação pendente: {1}",
20+
"Newer version of \"{0}\" is available: {1}.": "Versão mais nova disponível para a dependência \"{0}\": {1}",
21+
"Pre-release version of \"{0}\".": "Versão pre-release de \"{0}\".",
22+
"Ready-to-install package \"{0}\" at version {1}. Just run your package manager install command.": "Pacote pronto para instalar. Basta executar o comando `install` do seu gerenciador de dependências.",
23+
"Security advisory: this package version has a known flaw level {0}/{1}.": "",
24+
"Please upgrade to version {0} or higher.": "Por favor, atualize para a versão {0} ou superior.",
25+
"No fix available yet.": "Ainda não há uma correção disponível.",
26+
"If possible, downgrade to version {0}.": "Se possível, realize um downgrade para a versão {0}.",
27+
"Details": "Detalhes",
28+
"Install package": "Instalar dependência",
29+
"Install packages": "Instalar dependências",
30+
31+
"Update available:": "Atualização disponível:",
32+
"Latest version:": "Versão mais recente:",
33+
"install pending": "instalação pendente",
34+
"already installed, just formalization": "já instalado, apenas formalização",
35+
"attention: major update!": "atenção: atualização major!",
36+
"Now run your package manager install command.": "Agora, rode o comando `install` do seu gerenciador de dependências.",
37+
"Security advisory": "Aviso de segurança",
38+
"low": "baixo",
39+
"moderate": "moderado",
40+
"high": "alto",
41+
"critical": "crítico"
42+
}

0 commit comments

Comments
 (0)