[
  {
    "path": ".github/FUNDING.yml",
    "content": "github: alefragnani\npatreon: alefragnani\ncustom: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help Numbered Bookmarks improve\ntitle: \"[BUG] - \"\nlabels: bug\nassignees: ''\n\n---\n\n<!-- Please search existing issues to avoid creating duplicates. -->\n\n<!-- Use Help > Report Issue to prefill some of these. -->\n**Environment/version**\n\n- Extension version:\n- VSCode version: \n- OS version:\n\n**Steps to reproduce**\n\n1. \n2. \n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\ncontact_links:\n  - name: Question\n    url: https://github.com/alefragnani/vscode-numbered-bookmarks/discussions?discussions_q=category%3AQ%26A\n    about: Ask a question about Numbered Bookmarks"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for Numbered Bookmarks\ntitle: \"[FEATURE] - \"\nlabels: enhancement\nassignees: ''\n\n---\n\n<!-- Please search existing issues to avoid creating duplicates. -->\n\n<!-- Describe the feature you'd like. -->"
  },
  {
    "path": ".github/copilot-instructions.md",
    "content": "# Copilot Instructions for Numbered Bookmarks\n\nAlways reference these instructions first and fall back to additional search or terminal commands only when project files do not provide enough context.\n\n## Project Overview\n\nNumbered Bookmarks is a Visual Studio Code extension that helps users navigate code by marking and jumping to important positions with numbered bookmarks (0-9), inspired by Delphi IDE.\n\n## Technology Stack\n\n- Language: TypeScript\n- Runtime: VS Code Extension API (Node.js)\n- Bundler: Webpack 5\n- Linting: ESLint (`eslint-config-vscode-ext`)\n- Testing: Mocha + `@vscode/test-electron`\n\n## Working Effectively\n\nBootstrap and local setup:\n\n```bash\ngit submodule init\ngit submodule update\nnpm install\n```\n\nBuild and development quickstart:\n\n```bash\nnpm run build\nnpm run lint\n```\n\n- Use `npm run watch` during active development.\n- Use VS Code \"Launch Extension\" (F5) to validate behavior in Extension Development Host.\n- Expected command timings are usually under 10 seconds.\n- Never cancel `npm install`, `npm run watch`, or `npm test` once started.\n## Build and Development Commands\n\n- `npm run compile` - TypeScript compilation\n- `npm run build` - Webpack development build\n- `npm run watch` - Continuous webpack build\n- `npm run lint` - ESLint validation\n- `npm run test` - Full test suite\n- `npm run vscode:prepublish` - Production build\n\n## Testing and Validation\n\nAutomated tests use the VS Code test runner and may fail in restricted environments due to VS Code download/network constraints.\n\nManual validation checklist:\n\n1. Run `npm run build` successfully.\n2. Press F5 to launch Extension Development Host.\n3. Toggle bookmarks (`0`-`9`) and validate gutter/line decoration updates.\n4. Jump to existing and undefined bookmarks and verify behavior.\n5. Validate persistence behavior across file reload and VS Code restart.\n\nIf `npm test` fails with connectivity errors to VS Code download endpoints, treat this as environment-related unless code-level failures are present.\n\n## Project Structure and Key Files\n\n```\nsrc/\n├── core/                 # Core bookmark logic (Controller, File, Bookmark, operations)\n├── decoration/           # Gutter and line decorations\n├── sticky/               # Sticky bookmark engine (legacy and new)\n├── storage/              # Workspace state persistence\n├── quickpick/            # Quick pick UI components\n├── utils/                # Utility functions (fs, reveal, revealLocation)\n├── whats-new/            # What's New feature\n└── extension.ts          # Main extension entry point\n\ndist/                     # Webpack build output\nl10n/                     # Localization files\nout/                      # Compiled TypeScript files\nvscode-whats-new/         # Git submodule for What's New\nwalkthrough/              # Getting Started walkthrough content\n```\n\n## Coding Conventions and Patterns\n\n### Indentation\n\n- Use spaces, not tabs.\n- Use 4 spaces for indentation.\n\n### Naming Conventions\n\n- Use PascalCase for `type` names\n- Use PascalCase for `enum` values\n- Use camelCase for `function` and `method` names\n- Use camelCase for `property` names and `local variables`\n- Use whole words in names when possible\n\n### Types\n\n- Do not export `types` or `functions` unless you need to share it across multiple components\n- Do not introduce new `types` or `values` to the global namespace\n- Prefer `const` over `let` when possible.\n\n### Strings\n\n- Prefer double quotes for new code; some existing files may still use single quotes.\n- User-facing strings use two localization mechanisms:\n  - **Manifest contributions** (commands, settings, walkthrough metadata): use `%key%` placeholders in `package.json`, with translations in `package.nls.json` and `package.nls.{LANGID}.json`. Do **not** use `l10n.t` for these.\n  - **Runtime messages** (shown from extension code): use `l10n.t(\"message\")`, with translations in `l10n/bundle.l10n.json` and `l10n/bundle.l10n.{LANGID}.json`.\n- Externalized strings must not use string concatenation. Use placeholders instead (`{0}`).\n\n### Code Quality\n\n- All production source files under `src/` (excluding tests under `src/test`) must include the standard project copyright header\n- Prefer `async` and `await` over `Promise` and `then` calls\n- All user facing messages must be localized using the applicable localization framework (for example `l10n.t` method)\n- Keep imports organized: VS Code first, then internal modules.\n- Use semicolons at the end of statements.\n- Keep changes minimal and aligned with existing style.\n\n### Import Organization\n\n- Import VS Code API first: `import * as vscode from \"vscode\"`\n- Group related imports together\n- Use named imports for specific VS Code types\n- Import from local modules using relative paths\n\n### Architecture Patterns\n- **Container Pattern**: The `Container` class stores global state like `Container.context`\n- **Controller Pattern**: `Controller` class manages files and bookmarks per workspace folder\n- **File Pattern**: `File` class represents a document with its bookmarks\n- **Bookmark Pattern**: `Bookmark` interface with line and column positions\n- **Sticky Engine**: Two implementations (legacy and new) for maintaining bookmark positions during edits\n- **Decoration Pattern**: Separate decoration types for gutter icons and line backgrounds\n- **Event-Driven**: Heavy use of VS Code events (`onDidChangeConfiguration`, `onDidChangeTextDocument`, etc.)\n\n## Extension Features and Configuration\n\n### Key Features\n1. **Bookmark management**: Commands 0-9 to mark/unmark positions\n2. **Navigation**: Commands 0-9 to navigate to marked positions\n3. **Selection**: select lines between bookmarks, expand/shrink selections\n4. **Sidebar**: tree view showing all bookmarks organized by file\n5. **Persistence**: Save bookmarks in workspace state or project files\n6. **Sticky bookmarks**: Maintain bookmark positions during edits\n7. **Multi-root workspace**: Manage bookmarks per workspace folder\n8. **Remote Development**: Support for remote development scenarios\n9. **Internationalization support**: Localization of all user-facing strings\n10. **Customizable Appearance**: Gutter icons, line backgrounds, colors\n11. **Walkthrough**: Getting Started guide for new users\n\n### Important Settings\n- `numberedBookmarks.saveBookmarksInProject`: Save in `.vscode/numbered-bookmarks.json`\n- `numberedBookmarks.navigateThroughAllFiles`: How to navigate across files (false/replace/allowDuplicates)\n- `numberedBookmarks.gutterIconFillColor`: Gutter icon background color\n- `numberedBookmarks.experimental.enableNewStickyEngine`: Use new sticky engine (default: true)\n\n## Dependencies and External Tools\n\n### Production\n- `VS Code-ext-codicons`: Codicon support\n- `VS Code-ext-decoration`: Decoration utilities\n- `os-browserify`, `path-browserify`: Polyfills for browser compatibility\n\n### Development\n- ESLint with `eslint-config-VS Code-ext`\n- TypeScript ^4.4.4\n- Webpack 5 with ts-loader and terser plugin\n\n## Troubleshooting and Known Limitations\n\n- **Bookmark #0**: Reactivated but has no keyboard shortcut due to OS limitations\n- **macOS Shortcuts**: Use `Cmd` instead of `Ctrl` for some shortcuts (Cmd+Shift+3, Cmd+Shift+4)\n- **Untitled Files**: Special handling for untitled documents\n- **Path Handling**: Cross-platform path handling (Windows backslashes vs. Unix forward slashes)\n- **Localization**: Support for multiple languages via l10n and package.nls.*.json files\n- **Walkthrough**: Extension includes a getting started walkthrough\n\n## CI and Pre-Commit Validation\n\nBefore committing:\n\n1. Run `npm run lint`.\n2. Run `npm run build`.\n3. Run `npm run pretest`.\n\n## Common Tasks\n\n### Adding a New Command\n1. Add command definition in `package.json` > `contributes.commands`\n2. Add localized string in `package.nls.json`\n3. Register command handler in `src/extension.ts`\n4. Add keyboard binding if needed in `package.json` > `contributes.keybindings`\n5. Update menu contributions if applicable\n\n### Modifying Bookmark Behavior\n- Core logic in `src/core/operations.ts`\n- Sticky behavior in `src/sticky/sticky.ts` or `src/sticky/stickyLegacy.ts`\n- Visual updates in `src/decoration/decoration.ts`\n\n### Adding Tests\n- Create test files in `src/test/suite/`\n- Follow existing test patterns with Mocha\n- Update test suite index if needed\n\n\n\n\n"
  },
  {
    "path": ".github/instructions/localization-pr-review.instructions.md",
    "content": "---\ndescription: \"Use when reviewing pull requests that add or update localization files (package.nls.*.json, bundle.l10n.*.json, walkthrough .nls.*.md files) for VS Code extensions. Validates key completeness, JSON syntax, placeholder preservation, and file structure.\"\napplyTo: \"package.nls.*.json,l10n/bundle.l10n.*.json,walkthrough/*.nls.*.md\"\n---\n\n# Localization Pull Request Review Instructions\n\nThese instructions guide the Copilot Code Review agent when reviewing pull requests that add or update localization files for the Numbered Bookmarks VS Code extension.\n\n## Overview\n\nThis extension supports multiple localization approaches:\n1. **Package contributions** (`package.nls.*.json`) - for settings, commands, menus, views, and walkthrough metadata\n2. **Walkthrough content** (`walkthrough/*.nls.*.md`) - for walkthrough step content\n3. **Runtime messages** (`l10n/bundle.l10n.*.json`) - for messages displayed in extension code\n\n## Language Code Format\n\nAll language identifiers must follow the BCP 47 format and match VS Code's supported languages:\n- Use lowercase for language codes: `es`, `fr`, `pt-br`, `zh-cn`, `zh-tw`\n- Use hyphen separator for regional variants: `pt-br` (not `pt_br` or `pt-BR`)\n- Verify the language code is supported by VS Code\n\n## File Naming Conventions\n\n### Package Localization Files\n- **Pattern**: `package.nls.{LANGID}.json`\n- **Location**: Root directory\n- **Example**: `package.nls.es.json`, `package.nls.pt-br.json`\n\n### Walkthrough Localization Files\n- **Pattern**: `{stepName}.nls.{LANGID}.md`\n- **Location**: `walkthrough/` directory\n- **Example**: `toggle.nls.es.md`, `navigateToNumberedBookmarks.nls.pt-br.md`\n\n### Runtime Bundle Localization Files\n- **Pattern**: `bundle.l10n.{LANGID}.json`\n- **Location**: `l10n/` directory\n- **Example**: `bundle.l10n.es.json`, `bundle.l10n.pt-br.json`\n\n## Critical Validation Checks\n\n### 1. Key Completeness and Consistency\n\n**For `package.nls.*.json` files:**\n- ✅ All keys from `package.nls.json` must be present in the localized file\n- ✅ No extra keys should exist that aren't in the base file\n- ✅ Key names must match exactly (case-sensitive)\n- ❌ Missing keys mean incomplete localization\n- ❌ Extra keys indicate misalignment with base file\n\n**For `bundle.l10n.*.json` files:**\n- ✅ All keys from `l10n/bundle.l10n.json` must be present\n- ✅ Check for proper translation of variable placeholders (e.g., `{0}`, `{1}`)\n- ✅ Preserve format specifiers and escape sequences\n\n**For walkthrough `.nls.*.md` files:**\n- ✅ Corresponding base `.md` file must exist\n- ✅ Markdown structure should be preserved (headings, lists, links)\n- ✅ Command links must remain functional: `[text](command:commandId)`\n\n### 2. JSON Format and Syntax\n\n- ✅ Valid JSON syntax (no trailing commas, proper quotes, balanced braces)\n- ✅ UTF-8 encoding without BOM\n- ✅ Consistent indentation (4 spaces per the project's style)\n- ✅ Keys and values properly quoted with double quotes\n- ✅ Proper escaping of special characters (`\\n`, `\\\"`, `\\\\`)\n- ❌ No single quotes for strings\n- ❌ No comments in JSON files\n\n### 3. Translation Quality Indicators\n\nWhile you cannot verify translation accuracy, watch for:\n- ⚠️ Values that are identical to the English version (may indicate incomplete translation)\n- ⚠️ Missing diacritics or special characters expected in the target language\n- ⚠️ Broken variable placeholders: `{0}`, `{1}` must be preserved\n- ⚠️ Broken markdown links or command references in walkthrough files\n- ⚠️ Inconsistent use of terms across the same file\n\n### 4. Structural Integrity\n\n**Package files:**\n- ✅ Structure matches `package.nls.json` exactly\n- ✅ Nested properties preserved (e.g., `\"numberedBookmarks.commands.toggleBookmark0.title\"`)\n- ✅ Array elements and object structures maintained\n\n**Bundle files:**\n- ✅ Multi-line strings preserve `\\n` characters\n- ✅ Format placeholders maintained: `{0}`, `{1}`, etc.\n- ✅ Contextual consistency with surrounding text\n\n**Walkthrough files:**\n- ✅ Markdown syntax valid\n- ✅ Command links intact: `(command:numberedBookmarks.toggleBookmark0)`\n- ✅ Image references preserved\n- ✅ Code blocks and formatting maintained\n\n### 5. Full Localization Pack Validation\n\nWhen a new language is added, ensure that all three types of localization files are included:\n- `package.nls.{LANGID}.json`\n- `l10n/bundle.l10n.{LANGID}.json`\n- Walkthrough `.nls.{LANGID}.md` files for all steps\n\n## Common Issues to Flag\n\n### High Priority Issues ❌\n\n1. **Missing keys** - Incomplete localization\n   ```\n   Missing keys: [\"numberedBookmarks.commands.toggleBookmark0.title\", \"numberedBookmarks.commands.toggleBookmark1.title\"]\n   ```\n\n2. **Invalid JSON syntax** - File cannot be parsed\n   ```\n   Syntax error at line 45: Unexpected token ,\n   ```\n\n3. **Broken placeholders** - Runtime errors possible\n   ```\n   English: \"One of the projects in the workspace has a bookmarks file. The most recent was modified at {0}\"\n   Localized: \"Uno de los proyectos tiene un archivo. Modificado recientemente\" // Missing {0}\n   ```\n\n4. **Wrong file location** - Files won't be loaded\n   ```\n   ❌ src/l10n/bundle.l10n.es.json  (wrong location)\n   ✅ l10n/bundle.l10n.es.json      (correct location)\n   ```\n\n5. **Incomplete localization pack** - Missing files for a new language\n   ```\n   ❌ Missing files for language 'es':\n   - `package.nls.es.json`\n   - `l10n/bundle.l10n.es.json`\n   - Walkthrough `.nls.es.md` files\n   ```\n\n### Medium Priority Issues ⚠️\n\n1. **Extra keys** - May indicate stale translations\n   ```\n   Extra keys not in base file: [\"numberedBookmarks.commands.oldCommand.title\"]\n   ```\n\n2. **Untranslated values** - Values identical to English\n   ```\n   \"numberedBookmarks.commands.toggleBookmark0.title\": \"Toggle Bookmark 0\"  // Appears untranslated\n   ```\n\n3. **Inconsistent formatting** - Reduce diff noise\n   ```\n   // Inconsistent indentation or line endings\n   ```\n\n### Low Priority Issues ℹ️\n\n1. **Missing newline at end of file**\n2. **Inconsistent quote escaping** (if functionally equivalent)\n3. **Whitespace inconsistencies** (if not affecting output)\n\n## Review Checklist\n\nWhen reviewing a localization PR, verify:\n\n- [ ] Language code is correctly formatted and consistent\n- [ ] Files are placed in the correct directories\n- [ ] File naming follows conventions exactly\n- [ ] All required keys are present (compare with base files)\n- [ ] No extra keys exist that aren't in base files\n- [ ] JSON syntax is valid (run through JSON validator)\n- [ ] UTF-8 encoding is used\n- [ ] Indentation matches project style (4 spaces)\n- [ ] Variable placeholders `{0}`, `{1}`, etc. are preserved\n- [ ] Escape sequences `\\n`, `\\\"` are properly maintained\n- [ ] Markdown links and commands are intact (walkthrough files)\n- [ ] No obvious machine translation artifacts (if detectable)\n\n## Helpful Review Comments\n\n### For Missing Keys\n```\n⚠️ This localization is missing the following keys that exist in the base file:\n- `numberedBookmarks.commands.toggleBookmark0.title`\n- `numberedBookmarks.commands.toggleBookmark1.title`\n\nPlease add these keys with appropriate translations.\n```\n\n### For Extra Keys\n```\n⚠️ This file contains keys that don't exist in the base file:\n- `numberedBookmarks.commands.oldFeature.title`\n\nThese may be from an older version. Please remove them or verify they're still needed.\n```\n\n### For Broken Placeholders\n```\n❌ The placeholder `{0}` is missing in this translation:\n- English: \"The project's file was last modified at {0}\"\n- Localized: \"El archivo del proyecto fue modificado\"\n\nPlease include the `{0}` placeholder to show the modification time.\n```\n\n### For Structural Issues\n```\n❌ Invalid JSON syntax detected at line 23. Please ensure:\n- All keys and values are enclosed in double quotes\n- No trailing commas after the last item\n- All braces and brackets are properly balanced\n```\n\n### For Untranslated Content\n```\nℹ️ Some values appear to be identical to English. Please verify these are intentionally untranslated or if they should be localized:\n- `numberedBookmarks.configuration.title`: \"Numbered Bookmarks\"\n- `numberedBookmarks.walkthroughs.label`: \"Get Started with Numbered Bookmarks\"\n\n(Note: Some terms like \"Bookmarks\" may be intentionally kept in English depending on localization guidelines)\n```\n\n## Automated Checks to Run\n\nIf possible, recommend or run:\n\n1. **JSON validation**: `jq . package.nls.{LANGID}.json` or Node.js `JSON.parse()`\n2. **Key comparison**: Compare keys between base and localized files\n3. **Encoding check**: Verify UTF-8 encoding\n4. **Placeholder verification**: Regex to find `{n}` patterns and ensure they match\n\n## Exceptions and Edge Cases\n\n1. **Product names** - May remain in English: \"Numbered Bookmarks\", \"VS Code\"\n2. **Technical terms** - Some terms may be transliterated rather than translated\n3. **Command IDs** - Must never be translated: `command:numberedBookmarks.toggleNumbered0`\n4. **Setting keys** - Must never be translated: `numberedBookmarks.saveBookmarksInProject`\n5. **Partial translations** - In-progress work may have some untranslated strings; verify with PR description\n\n## Final Recommendation Format\n\nProvide a structured review:\n\n```markdown\n## Localization Review Summary\n\n**Language**: {language name} ({language code})\n**Files Changed**: {count} files\n\n### ✅ Passed Checks\n- All required keys present\n- Valid JSON syntax\n- Proper file locations\n- Placeholders preserved\n\n### ⚠️ Issues Found\n1. [Priority] {Issue description} in {file}:{line}\n2. [Priority] {Issue description} in {file}:{line}\n\n### 💡 Suggestions\n- {Optional improvement suggestion}\n\n### Overall Assessment\n{Approve / Request Changes / Comment}\n```\n\n## Resources\n\n- [VS Code Extension Localization Guide](https://code.visualstudio.com/api/extension-guides/localization)\n- [BCP 47 Language Codes](https://tools.ietf.org/html/bcp47)\n- Project localization skill: `.github/skills/vscode-ext-localization/SKILL.md`\n"
  },
  {
    "path": ".github/pull_request_template.md",
    "content": "## Description\n<!-- Briefly describe the changes in this PR, and which Issue it refers to (if applicable) -->\n\n--- \n\n## Prerequisites Checklist\n- [ ] The code is **up-to-date with the `master` branch**\n- [ ] I have reviewed the [CONTRIBUTING.md](../CONTRIBUTING.md) guidelines\n- [ ] The code **follows the repository's coding style** (TypeScript conventions, formatting, naming)\n- [ ] All changes are **testable and have been manually tested**\n\n--- \n\n## Regular PR\n\nIf your PR is a regular PR, to fix an issue, provide a new feature or change a behavior, follow this additional checklist:\n\n- [ ] This PR must address an **existing issue**\n\n### Changes Made\n<!-- Provide a detailed list of changes -->\n\n\n--- \n\n## Localization PR\n\nIf your PR is related to localization, follow this additional checklist:\n\n- [ ] Identify the language code, like \"pt-br\" _(There is no need to identify the language name)_\n- [ ] All UI strings have been added/updated to `package.nls.json`\n- [ ] All translations were added/updated to the corresponding `package.nls.<language>.json` file(s)\n- [ ] All new messages and strings located in extension source code have been added/updated to `l10n/bundle.l10n.json`\n- [ ] All translations were added/updated to the corresponding `l10n/bundle.l10n.<language>.json` file(s)\n- [ ] All walkthrough content has been added/updated to their `Markdown` files\n- [ ] All translations were added/updated to the corresponding `walkthrough/someStep.pt-br.md` file(s)\n\n--- \n\n## Testing\n<!-- Describe how you tested your changes -->\n- [ ] Tested locally with the extension running in VS Code\n- [ ] Tested on Windows (if applicable)\n- [ ] Tested on macOS (if applicable)\n- [ ] Tested on Linux (if applicable)\n- [ ] Tested on Remotes (Containers, WSL, etc.)\n- [ ] Verified existing functionality still works (no regressions)\n\n## Documentation\n- [ ] Updated [README.md](../README.md) if adding user-facing features (if applicable)\n\n## Additional Notes\n<!-- Add any additional context or notes about this PR -->"
  },
  {
    "path": ".github/skills/vscode-ext-commands/SKILL.md",
    "content": "---\nname: vscode-ext-commands\ndescription: 'Guidelines for contributing commands in VS Code extensions. Indicates naming convention, visibility, localization and other relevant attributes, following VS Code extension development guidelines, libraries and good practices'\n---\n\n# VS Code extension command contribution\n\nThis skill helps you to contribute commands in VS Code extensions\n\n## When to use this skill\n\nUse this skill when you need to:\n- Add or update commands to your VS Code extension\n\n# Instructions\n\nVS Code commands must always define a `title`, independent of its category, visibility or location. We use a few patterns for each \"kind\" of command, with some characteristics, described below:\n\n* Regular commands: By default, all commands should be accessible in the Command Palette, must define a `category`, and don't need an `icon`, unless the command will be used in the Side Bar.\n\n* Side Bar commands: Its name follows a special pattern, starting with underscore (`_`) and suffixed with `#sideBar`, like `_extensionId.someCommand#sideBar` for instance. Must define an `icon`, and may or may not have some rule for `enablement`. Side Bar exclusive commands should not be visible in the Command Palette. Contributing it to the `view/title` or `view/item/context`, we must inform _order/position_ that it will be displayed, and we can use terms \"relative to other command/button\" in order to you identify the correct `group` to be used. Also, it's a good practice to define the condition (`when`) for the new command is visible.\n"
  },
  {
    "path": ".github/skills/vscode-ext-localization/SKILL.md",
    "content": "---\nname: vscode-ext-localization\ndescription: 'Guidelines for proper localization of VS Code extensions, following VS Code extension development guidelines, libraries and good practices'\n---\n\n# VS Code extension localization\n\nThis skill helps you localize every aspect of VS Code extensions\n\n## When to use this skill\n\nUse this skill when you need to:\n- Localize new or existing contributed configurations (settings), commands, menus, views or walkthroughs\n- Localize new or existing messages or other string resources contained in extension source code that are displayed to the end user\n\n# Instructions\n\nVS Code localization is composed by three different approaches, depending on the resource that is being localized. When a new localizable resource is created or updated, the corresponding localization for all currently available languages must be created/updated.\n\n1. Configurations like Settings, Commands, Menus, Views, ViewsWelcome, Walkthrough Titles and Descriptions, defined in `package.json`\n  -> An exclusive `package.nls.LANGID.json` file, like `package.nls.pt-br.json` of Brazilian Portuguese (`pt-br`) localization\n2. Walkthrough content (defined in its own `Markdown` files)\n  -> An exclusive `Markdown` file like `walkthrough/someStep.pt-br.md` for Brazilian Portuguese localization\n3. Messages and string located in extension source code (JavaScript or TypeScript files)\n  -> An exclusive `bundle.l10n.pt-br.json` for Brazilian Portuguese localization\n"
  },
  {
    "path": ".github/workflows/main.yml",
    "content": "name: CI\n\n# Controls when the action will run. Triggers the workflow on push or pull request\n# events but only for the master branch\non:\n  push:\n    branches: [ master ]\n  pull_request:\n    branches: [ master ]\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"build\"\n  build:\n    # The type of runner that the job will run on\n    strategy:\n      matrix:\n        os: [macos-latest, ubuntu-latest, windows-latest]\n    runs-on: ${{ matrix.os }}\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    steps:\n      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n      - name: Checkout\n        uses: actions/checkout@v4\n        with:\n          submodules: true\n\n      # Runs a set of commands using the runners shell\n      - name: Install Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: 22.x\n          cache: 'npm'\n\n      # Runs the tests\n      - name: Cache VS Code downloads\n        uses: actions/cache@v4\n        with:\n          path: .vscode-test\n          key: vscode-test-${{ matrix.os }}-${{ hashFiles('**/package.json') }}\n          restore-keys: |\n            vscode-test-${{ matrix.os }}-\n      - run: npm ci\n      - run: xvfb-run -a npm test\n        if: runner.os == 'Linux'\n      - run: npm test\n        if: runner.os != 'Linux'\n"
  },
  {
    "path": ".gitignore",
    "content": "out\nnode_modules\n.vscode-test/\n*.vsix\ndist\nimages/bookmark?*.svg"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"vscode-whats-new\"]\n\tpath = vscode-whats-new\n\turl = https://github.com/alefragnani/vscode-whats-new.git"
  },
  {
    "path": ".vscode/bookmarks.json",
    "content": "{\n\t\"bookmarks\": [\n\t\t{\n\t\t\t\"fsPath\": \"$ROOTPATH$\\\\extension.ts\",\n\t\t\t\"bookmarks\": [\n\t\t\t\t638\n\t\t\t]\n\t\t}\n\t]\n}"
  },
  {
    "path": ".vscode/extensions.json",
    "content": "{\n\t// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.\n\t// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp\n\n\t// List of extensions which should be recommended for users of this workspace.\n\t\"recommendations\": [\n\t\t\"dbaeumer.vscode-eslint\",\n\t\t\"eamodio.tsl-problem-matcher\",\n\t],\n\t// List of extensions recommended by VS Code that should not be recommended for users of this workspace.\n\t\"unwantedRecommendations\": [\n\t\t\n\t]\n}"
  },
  {
    "path": ".vscode/launch.json",
    "content": "// A launch configuration that compiles the extension and then opens it inside a new window\n{\n\t\"version\": \"0.2.0\",\n\t\"configurations\": [\n\t\t{\n\t\t\t\"name\": \"Launch Extension\",\n\t\t\t\"type\": \"extensionHost\",\n\t\t\t\"request\": \"launch\",\n\t\t\t\"runtimeExecutable\": \"${execPath}\",\n\t\t\t\"args\": [\"--extensionDevelopmentPath=${workspaceRoot}\" ],\n\t\t\t\"stopOnEntry\": false,\n\t\t\t\"outFiles\": [\"${workspaceFolder}/dist/**/*.js\"],\n            // \"skipFiles\": [\"<node_internals>/**\", \"**/node_modules/**\", \"**/app/out/vs/**\", \"**/extensions/**\"],\n            \"smartStep\": true,\n            \"sourceMaps\": true\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Launch Tests\",\n\t\t\t\"type\": \"extensionHost\",\n\t\t\t\"request\": \"launch\",\n\t\t\t\"runtimeExecutable\": \"${execPath}\",\n\t\t\t\"args\": [\n        \"--disable-extensions\",\n\t\t\t\t\"--extensionDevelopmentPath=${workspaceFolder}\",\n\t\t\t\t\"--extensionTestsPath=${workspaceFolder}/out/src/test/suite/index\"\n\t\t\t],\n\t\t\t\"outFiles\": [\n\t\t\t\t\"${workspaceFolder}/out/src/test/**/*.js\"\n\t\t\t],\n\t\t\t\"preLaunchTask\": \"npm: test-compile\"\n        },\n        {\n            \"name\": \"Run Web Extension in VS Code\",\n            \"type\": \"pwa-extensionHost\",\n            \"debugWebWorkerHost\": true,\n            \"request\": \"launch\",\n            \"args\": [\n              \"--extensionDevelopmentPath=${workspaceFolder}\",\n              \"--extensionDevelopmentKind=web\"\n            ],\n            \"outFiles\": [\"${workspaceFolder}/dist/**/*.js\"],\n            \"preLaunchTask\": \"npm: watch\"\n        }\n\t]\n}"
  },
  {
    "path": ".vscode/numbered-bookmarks.json",
    "content": "{\n\t\"bookmarks\": [\n\t\t{\n\t\t\t\"fsPath\": \"$ROOTPATH$\\\\package.json\",\n\t\t\t\"bookmarks\": [\n\t\t\t\t-1,\n\t\t\t\t19,\n\t\t\t\t13,\n\t\t\t\t-1,\n\t\t\t\t-1,\n\t\t\t\t-1,\n\t\t\t\t-1,\n\t\t\t\t-1,\n\t\t\t\t-1,\n\t\t\t\t-1\n\t\t\t]\n\t\t}\n\t]\n}"
  },
  {
    "path": ".vscode/settings.json",
    "content": "// Place your settings in this file to overwrite default and user settings.\n{\n\t\"files.exclude\": {\n\t\t\"out\": false // set this to true to hide the \"out\" folder with the compiled JS files\n\t},\n\t\"search.exclude\": {\n\t\t\"out\": true\n\t}\n}"
  },
  {
    "path": ".vscode/tasks.json",
    "content": "{\n    \"version\": \"2.0.0\",\n    \"presentation\": {\n        \"echo\": false,\n        \"reveal\": \"always\",\n        \"focus\": false,\n        \"panel\": \"dedicated\",\n        \"showReuseMessage\": false\n    },\n    \"tasks\": [\n        {\n            \"type\": \"npm\",\n            \"script\": \"build\",\n            \"group\": \"build\",\n            \"problemMatcher\": [\"$ts-webpack\", \"$tslint-webpack\"]\n        },\n        {\n            \"type\": \"npm\",\n            \"script\": \"watch\",\n            \"group\": {\n                \"kind\": \"build\",\n                \"isDefault\": true\n            },\n            \"isBackground\": true,\n            \"problemMatcher\": [\"$ts-webpack-watch\", \"$tslint-webpack-watch\"]\n        }\n    ]\n}"
  },
  {
    "path": ".vscodeignore",
    "content": ".vscode/**\n.vscode-test/**\ntypings/**\n**/*.ts\n**/*.map\nout/**\nnode_modules/**\n.gitignore\ntsconfig.json\ntest/**\n*.vsix\npackage-lock.json\nwebpack.config.js\n**/.github/\n**/.git/**\n**/.git\n**/.gitmodules\n.devcontainer/\nimages/bookmark?-*.svg"
  },
  {
    "path": "AGENTS.md",
    "content": "# Numbered Bookmarks Agents Instructions\n\nAgents working in this repository should read the main instructions first: [Copilot Instructions](.github/copilot-instructions.md).\n\n## Use this file for\n\n- Finding the authoritative workflow for edits and validation.\n- Keeping command, configuration, and localization changes consistent.\n- Applying minimal, safe changes aligned with repository conventions.\n\n## Typical agent tasks\n\n- Update extension manifest contributions and related localization keys.\n- Adjust source/configuration files and run repository validation commands.\n- Verify build, lint, and Extension Development Host checks before finishing.\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "## [9.0.0] - 2025-12-13\n### Added\n- Fully Open Source again (issue [#131](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/131))\n\n### Fixed\n- Reuse opened file (issue [#180](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/180))\n\n### Internal\n- Security Alert: word-wrap (dependabot [PR #167](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/167))\n- Security Alert: webpack (dependabot [PR #178](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/178))\n- Security Alert: serialize-javascript (dependabot [PR #183](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/183))\n- Security Alert: braces (dependabot [PR #176](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/176))\n\n## [8.5.0] - 2024-04-04\n### Added\n- Published to Open VSX (issue [#147](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/147))\n- New setting to choose viewport position on navigation (issue [#141](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/141))\n\n## [8.4.0] - 2023-07-19\n### Added\n- Getting Started/Walkthrough (issue [#117](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/117))\n- Localization (l10n) support (issue [#151](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/151))\n\n### Changed\n- Avoid What's New when using Gitpod (issue [#168](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/168))\n- Avoid What's New when installing lower versions (issue [#168](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/168))\n\n### Fixed\n- Repeated gutter icon on line wrap (issue [#149](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/149))\n\n### Internal\n- Switch initialization to `onStartupFinished` API (issue [#145](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/145))\n- Security Alert: webpack (dependabot [PR #156](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/156))\n- Security Alert: terser (dependabot [PR #143](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/143))\n\n\n## [8.3.1] - 2022-07-17\n### Internal\n- Add GitHub Sponsors support (PR [#142](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/142))\n\n## [8.3.0] - 2022-05-07\n### Added\n- New setting to decide if should delete bookmark if associated line is deleted (issue [#27](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/27))\n- Update bookmark reference on file renames (issue [#120](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/120))\n\n### Changed\n- Replace custom icons with _on the fly_ approach (issue [#129](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/129))\n\n## [8.2.0] - 2022-01-12\n### Added\n- New **Sticky Engine** with improved support to Formatters, Multi-cursor and Undo operations (issue [#115](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/115))\n\n### Changed\n- Removed deprecated setting `backgroundLineColor` (issue [#116](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/116))\n\n### Fixed\n- Bookmarks removes on Undo (issue [#47](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/47))\n\n## [8.1.0] - 2021-06-09\n### Added\n- Support **Virtual Workspaces** (issue [#107](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/107))\n- Support **Workspace Trust** (issue [#108](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/108))\n- Support Translation (issue [#112](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/112))\n- Return to line/column when cancel List or List from All Files (issue [#96](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/96))\n\n### Internal\n- Security Alert: lodash (dependabot [PR #109](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/109))\n- Security Alert: ssri (dependabot [PR #106](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/106))\n- Security Alert: y18n (dependabot [PR #104](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/104))\n\n## [8.0.3] - 2021-03-20\n### Fixed\n- Bookmarks on deleted/missing files breaks jumping (issue [#102](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/102))\n- Running the contributed command: 'numberedBookmarks.toggleBookmark1' failed (issue [#100](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/100))\n- Toggling bookmarks on Untitled documents does not work bug (issue [#99](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/99))\n\n## [8.0.2] - 2021-02-25\n### Fixed\n- Command `Toggle` not found - loading empty workspace with random files (issue [#97](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/97))\n\n## [8.0.1] - 2021-02-15\n### Fixed\n- Extension does not activate on VS Code 1.50 (issue [#98](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/98))\n\n## [8.0.0] - 2021-02-11\n### Added\n- Improvements on multi-root support (issue [#92](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/92))\n- Multi-platform support (issue [#94](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/94))\n- Support Remote Development (issue [#63](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/63))\n- Support Column position (issue [#14](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/14))\n\n### Fixed\n- Error using `Toggle Bookmark` command with `saveBookmarksInProject` (issue [#69](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/69))\n\n### Internal\n- Do not show welcome message if installed by Settings Sync (issue [#95](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/95))\n\n## [7.3.0] - 2021-01-12\n### Added\n- Support submenu for editor commands (issue [#84](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/84))\n- New setting to decide if should show a warning when a bookmark is not defined (issue [#73](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/73))\n\n### Fixed\n- Typo in extension's configuration title (issue [#89](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/89))\n\n### Internal\n- Shrink installation size (issue [#53](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/53))\n- Update whats-new submodule API (issue [#85](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/85))\n\n## [7.2.0] - 2020-09-16\n### Internal\n- Use `vscode-ext-codicons` package (issue [#80](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/80))\n- Migrate from TSLint to ESLint (issue [#75](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/75))\n\n## [7.1.3] - 2020-08-05\n### Fixed\n- Security Alert: elliptic (dependabot [PR #79](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/79))\n- Security Alert: lodash (dependabot [PR #77](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/77))\n\n## [7.1.2] - 2020-06-20\n### Fixed\n- Stars visibility on Marketplace (issue [#76](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/76))\n\n## [7.1.1] - 2020-05-10\n### Fixed\n- View context menu displayed erroneously (issue [#72](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/72))\n\n## [7.1.0] - 2020-05-09\n### Fixed\n- Navigation error on empty files (issue [#68](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/68))\n\n### Internal\n- Support VS Code extension view context menu\n\n## [7.0.0] - 2020-02-07\n### Added\n- Support `workbench.colorCustomizations` (issue [#61](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/61))\n\n### Internal\n- Support VS Code package split\n- Use `vscode-ext-decoration` package\n\n## [6.2.1] - 2019-05-27\n### Fixed\n- Security Alert: tar\n\n## [6.2.0] - 2019-03-25\n### Added\n- Improvements to README, describing commands and shortcuts (issue [#52](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/52))\n- Improvements to README, describing shortcut conflicts for MacOS users (issue [#40](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/40))\n\n### Fixed\n- Selection issue when cutting text (issue [#48](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/48))\n\n## [6.1.1] - 2019-03-15\n### Fixed\n- What's New page broken in VS Code 1.32 due to CSS API changes\n\n## [6.1.0] - 2018-12-17\n### Added\n- New settings to choose gutter icon colors (icon fill and number) (Thanks to @vasilev-alex [PR #45](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/45))\n\n## [6.0.0] - 2018-11-26\n### Added\n- What's New\n\n## [5.2.0] - 2018-09-14\n### Added\n- New Setting to choose background color of bookmarked lines (Thanks to @ibraimgm [PR #44](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/44))\n- New Version Numbering based on `semver`\n\n## [0.12.0 - 5.1.0] - 2018-09-14\n### Added\n- Patreon button\n\n## [0.11.1 - 5.0.1] - 2018-03-09\n### Fixed\n- Error activating extension without workspace (folder) open (issue [#35](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/35))\n\n## [0.11.0 - 5.0.0] - 2017-11-13\n### Added\n- Multi-root support (issue [#30](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/30))\n\n## [0.10.0 - 4.0.0] - 2017-05-27\n### Changed\n- **TypeScript** and **VS Code engine** updated\n- Source code moved to `src` folder\n- Enabled **TSLint**\n- Source code organization\n\n### Fixed\n- Error opening files outside the project in `List from All Files`  (issue [#26](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/26))\n- `List from All Files` command not working since VS Code 1.12 (issue [#25](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/25))\n\n## [0.9.1 - 3.1.1] - 2017-05-11\n### Fixed\n- Bookmarks disapearing/incorrectly moving when new lines are added above (issue [#23](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/23))\n\n## [0.9.0 - 3.1.0] - 2017-04-23\n### Added\n- New Setting to choose how bookmarks _Navigate Through All Files_ (issue [#6](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/6))\n\n## [0.8.0 - 3.0.0] - 2017-04-02\n### Added\n- New Setting to allow Bookmarks to be saved in the project (inside `.vscode` folder)\n\n### Changed\n- Bookmarks are now _always_ Sticky\n\n## [0.7.0 - 2.4.0] - 2017-03-06\n### Added\n- Avoid unnecessary scrolling (issue [#18](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/18))\n\n## [0.6.0 - 2.3.0] - 2017-01-03\n### Added\n- Toggle Bookmark 0 and Jump to Bookmark 0 (PR [#16](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/16) - kudos to @DeegC)\n\n## [0.5.2 - 2.2.2] - 2016-12-03\n### Added\n- Tags added for Marketplace presentation\n\n## [0.5.1 - 2.2.1] - 2016-12-03\n### Fixed\n- Bookmarks becomes invalid when documents are modified outside VSCode\n\n## [0.5.0 - 2.2.0] - 2016-09-26\n### Added\n- New Command `List from all files`\n- New Command `Clear from all files`\n\n## [0.4.2 - 2.1.2] - 2016-09-19\n### Fixed\n- Bookmarks missing in _Insider release 1.6.0_ (issue [#11](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/11))\n\n## [0.4.1 - 2.1.1] - 2016-09-03\n### Fixed\n- Remove extension activation log (issue [#10](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/10))\n\n## [0.4.0 - 2.1.0] - 2016-06-17\n### Added\n- New Setting to Sticky Bookmarks \n\n## [0.3.0 - 2.0.0] - 2016-03-08\n### Added\n- Bookmarks are also rendered in the overview ruler\n\n### Fixed\n- Incompatibility with **Code February Release** 0.10.10 (issue [#4](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/4))\n\n## [0.2.0 - 1.0.0] - 2016-02-15\n### Added\n- New Command `List`\n\n## [0.1.0 - 0.9.0] - 2016-02-06\n\n* Initial release\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing\n\nFirst off all, thank you for taking the time to contribute!\n\nWhen contributing to this project, please first discuss the changes you wish to make via an issue before making changes.\n\n## Your First Code Contribution\n\nUnsure where to begin contributing? You can start by looking through the [`help wanted`](https://github.com/alefragnani/vscode-numbered-bookmarks/labels/good%20first%20issue) issues.\n\n### Getting the code\n\n```\ngit clone https://github.com/alefragnani/vscode-numbered-bookmarks.git\n```\n\nPrerequisites\n\n- [Git](https://git-scm.com/), `>= 2.22.0`\n- [NodeJS](https://nodejs.org/), `>= 18.17.0`\n\n### Dependencies\n\nFrom a terminal, where you have cloned the repository, execute the following command to install the required dependencies:\n\n```\ngit submodule init\ngit submodule update\nnpm install\n```\n\n### Build / Watch\n\nFrom inside VS Code, run `Tasks: Run Task Build`. It **Builds** the extension in **Watch Mode**.\n\nThis will first do an initial full build and then watch for file changes, compiling those changes incrementally, enabling a fast, iterative coding experience.\n\n> **Tip!** You can press <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>B</kbd> (<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>B</kbd> on Windows, Linux) to start the watch task.\n\n> **Tip!** You don't need to stop and restart the development version of Code after each change. You can just execute `Reload Window` from the command palette.\n\n### Linting\n\nThis project uses [ESLint](https://eslint.org/) for code linting. You can run ESLint across the code by calling `npm run lint` from a terminal. Warnings from ESLint show up in the `Errors and Warnings` quick box and you can navigate to them from inside VS Code.\n\nTo lint the code as you make changes you can install the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension.\n\n### Debugging\n\n1. Open the `vscode-numbered-bookmarks` folder\n2. Ensure the required [dependencies](#dependencies) are installed\n3. Choose the `Launch Extension` launch configuration from the launch dropdown in the Run and Debug viewlet and press `F5`.\n\n## Submitting a Pull Request\n\nBe sure your branch is up to date (relative to `master`) and submit your PR. Also add reference to the issue the PR refers to."
  },
  {
    "path": "LICENSE.md",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>."
  },
  {
    "path": "README.md",
    "content": "<p align=\"center\">\n  <br />\n  <a title=\"Learn more about Numbered Bookmarks\" href=\"http://github.com/alefragnani/vscode-numbered-bookmarks\"><img src=\"https://raw.githubusercontent.com/alefragnani/vscode-numbered-bookmarks/master/images/vscode-numbered-bookmarks-logo-readme.png\" alt=\"Numbered Bookmarks Logo\" width=\"70%\" /></a>\n</p>\n\n# What's new in Numbered Bookmarks 9\n\n* Fully Open Source again\n* Published to **Open VSX**\n* Adds **Getting Started / Walkthrough**\n* Adds **Rename file** support\n* New **Sticky Engine**\n\n# Support\n\n**Numbered Bookmarks** is an extension created for **Visual Studio Code**. If you find it useful, please consider supporting it.\n\n<table align=\"center\" width=\"60%\" border=\"0\">\n  <tr>\n    <td>\n      <a title=\"Paypal\" href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted\"><img src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif\"/></a>\n    </td>\n    <td>\n      <a title=\"GitHub Sponsors\" href=\"https://github.com/sponsors/alefragnani\"><img src=\"https://raw.githubusercontent.com/alefragnani/oss-resources/master/images/button-become-a-sponsor-rounded-small.png\"/></a>\n    </td>\n    <td>\n      <a title=\"Patreon\" href=\"https://www.patreon.com/alefragnani\"><img src=\"https://raw.githubusercontent.com/alefragnani/oss-resources/master/images/button-become-a-patron-rounded-small.png\"/></a>\n    </td>\n  </tr>\n</table>\n\n# Numbered Bookmarks\n\nIt helps you to navigate in your code, moving between important positions easily and quickly. No more need to _search for code_. All of this in **_in Delphi style_**.\n\n# Features\n\n## Available commands\n\n* `Numbered Bookmarks: Toggle Bookmark '#number'` Mark/unmark the current position with a numbered bookmark\n* `Numbered Bookmarks: Jump to Bookmark '#number'` Move the cursor to the numbered bookmark\n* `Numbered Bookmarks: List` List all bookmarks from the current file\n* `Numbered Bookmarks: List from All Files` List all bookmarks from the all files\n* `Numbered Bookmarks: Clear` remove all bookmarks from the current file\n* `Numbered Bookmarks: Clear from All Files` remove all bookmarks from the all files\n\n> Both **Toggle Bookmark** and **Jump to Bookmark** commands are numbered from 0 to 9\n\n> The Numbered Bookmark **0** has been reactivated in [PR #16](https://github.com/alefragnani/vscode-numbered-bookmarks/pull/16), but because of [this issue](https://github.com/Microsoft/vscode/issues/2585) it has no _keyboard shortcut_ defined. If sometime in the future these OS related limitation disappears, the shortcuts will be restored.\n\n> MacOS users should be aware that some commands shortcuts should conflict with native shortcuts, and uses `Cmd` instead of `Ctrl` (`Cmd + Shift + 3` and `Cmd + Shift + 4`)\n\n## Manage your bookmarks\n\n### Toggle Bookmark '#number'\n\nYou can easily Mark/Unmark bookmarks on any position. \n\n![Toggle](images/numbered-bookmarks-toggle.png)\n\n> The default shortcuts are numbered from 0 to 9: `Toggle Bookmark #` (`Ctrl + Shift + #`)\n\n### Navigation\n\n### Jump to Bookmark '#number'\n\n> The default shortcuts are numbered from 0 to 9: `Jump to Bookmark #` (`Ctrl + #`)\n\n### List\n\nList all bookmarks from the current file and easily navigate to any one. It shows you the line contents and temporarily scroll to that position.\n\n### List from All Files\n\nList all bookmarks from all files and easily navigate to any one. It shows you the line contents and temporarily scroll to that position.\n\n![List](images/numbered-bookmarks-list-from-all-files.gif)\n\n* Bookmarks from the active file shows the line content and the position\n* Bookmarks from other files also shows the relative file path\n\n### Improved Multi-root support\n\nWhen you work with **multi-root** workspaces, the extension can manage the bookmarks individually for each folder. \n\nSimply define `saveBookmarksInProject` as `true` on your **User Settings** or in the **Workspace Settings**, and when you run the `Numbered Bookmarks: List from All Files` command, you will be able to select from which folder the bookmarks will be shown.\n\n![List](images/numbered-bookmarks-list-from-all-files-multi-root.gif)\n\n### Remote Development support\n\nThe extension now fully supports **Remote Development** scenarios. \n\nIt means that when you connect to a _remote_ location, like a Docker Container, SSH or WSL, the extension will be available, ready to be used. \n\n> You don't need to install the extension on the remote anymore.\n\nBetter yet, if you use `numberedBookmarks.saveBookmarksInProject` setting defined as `true`, the bookmarks saved locally _will be available_ remotely, and you will be able to navigate and update the bookmarks. Just like it was a resource from folder you opened remotely.\n\n## Available Settings\n\n* Bookmarks are always saved between sessions, and you can decide if it should be saved _in the Project_, so you can add it to your Git/SVN repo and have it in all your machines _(`false` by default)_. Set to `true` and it will save the bookmarks in `.vscode\\numbered-bookmarks.json` file.\n```json\n    \"numberedBookmarks.saveBookmarksInProject\": true\n```\n\n* Controls whether to show a warning when a bookmark is not defined _(`false` by default)_\n```json\n    \"numberedBookmarks.showBookmarkNotDefinedWarning\": true\n```\n\n* Per [User Requests](https://github.com/alefragnani/vscode-numbered-bookmarks/issues/6) it is now possible to choose how Bookmarks _Navigate Through All Files_:\n\n```json\n    \"numberedBookmarks.navigateThroughAllFiles\"\n```\n\nPossible Values:\n\nValue | Explanation\n--------- | ---------\n`false` | _default_ - same behavior as today\n`replace` | you can't have the same numbered bookmark in different files\n`allowDuplicates` | you can have the same numbered bookmark in different files, and if you jump repeatedly to the same number, it will look on other files\n\n* **Experimental**. Enables the new **Sticky engine** with support for Formatters, improved source change detections and undo operations _(`true` by default)_\n\n```json\n    \"numberedBookmarks.experimental.enableNewStickyEngine\": false\n```\n\n* \"Specifies whether bookmarks on deleted line should be kept on file, moving it down to the next line, instead of deleting it with the line where it was toggled.\" _(`false` by default)_\n\n```json\n    \"numberedBookmarks.keepBookmarksOnLineDelete\": true\n```\n\n> **Limitation:** It does not support `Undo` operations. It means that, once you delete a line and the bookmark is moved to the next available line, the `Undo` operation won't move the bookmark back to the previous line. The next line is now the new location of the bookmark.\n\n* Choose the gutter icon fill color\n\n```json\n    \"numberedBookmarks.gutterIconFillColor\"\n```\n\n* Choose the gutter icon number color\n\n```json\n    \"numberedBookmarks.gutterIconNumberColor\"\n```\n\n* Choose the location where the bookmarked line will be revealed _(`center` by default)_\n\n  * `top`: Reveals the bookmarked line at the top of the editor\n  * `center`: Reveals the bookmarked line in the center of the editor\n\n```json\n    \"numberedBookmarks.revealPosition\": \"center\"\n```\n\n## Available Colors\n\n* Choose the background color to use on a bookmarked line\n```json\n    \"workbench.colorCustomizations\": {\n      \"numberedBookmarks.lineBackground\": \"#157EFB22\"  \n    }\n```\n\n* Choose the border color to use on a bookmarked line\n```json\n    \"workbench.colorCustomizations\": {\n      \"numberedBookmarks.lineBorder\": \"#FF0000\"  \n    }\n```\n\n* Choose marker color to use in the overview ruler\n```json\n    \"workbench.colorCustomizations\": {\n      \"numberedBookmarks.overviewRuler\": \"#157EFB88\"  \n    }\n```\n\n\n> For any of the _Color_ settings, you can use color names `blue`, RGB `rgb(0, 255, 37)`, RGBA `rgba(0, 255, 37, 0.2)` or HEX `#00ff25` format.\n\n## Project and Session Based\n\nThe bookmarks are saved _per session_ for the project that you are using. You don't have to worry about closing files in _Working Files_. When you reopen the file, the bookmarks are restored.\n\nIt also works even if you only _preview_ a file (simple click in TreeView). You can put bookmarks in any file and when you preview it again, the bookmarks will be there.\n\n# License\n\n[GPL-3.0](LICENSE.md) &copy; Alessandro Fragnani"
  },
  {
    "path": "l10n/bundle.l10n.json",
    "content": "{\n    \"No Bookmarks found\": \"No Bookmarks found\",\n    \"Type a line number or a piece of code to navigate to\": \"Type a line number or a piece of code to navigate to\",\n    \"The Bookmark {0} is not defined\": \"The Bookmark {0} is not defined\",\n    \"Select a workspace\": \"Select a workspace\",\n    \"Error loading Numbered Bookmarks: {0}\": \"Error loading Numbered Bookmarks: {0}\"\n}"
  },
  {
    "path": "l10n/bundle.l10n.pt-br.json",
    "content": "{\n    \"No Bookmarks found\": \"Nenhum Bookmark encontrado\",\n    \"Type a line number or a piece of code to navigate to\": \"Digite um número de linha ou pedaço de código para navegar\",\n    \"The Bookmark {0} is not defined\": \"O Bookmark {0} não está definido\",\n    \"Select a workspace\": \"Selecione um workspace\",\n    \"Error loading Numbered Bookmarks: {0}\": \"Erro lendo Numbered Bookmarks: {0}\"\n}"
  },
  {
    "path": "package.json",
    "content": "{\n    \"name\": \"numbered-bookmarks\",\n    \"displayName\": \"Numbered Bookmarks\",\n    \"description\": \"Mark lines and jump to them, in Delphi style\",\n    \"version\": \"9.0.0\",\n    \"publisher\": \"alefragnani\",\n    \"engines\": {\n        \"vscode\": \"^1.73.0\"\n    },\n    \"extensionKind\": [\n        \"ui\",\n        \"workspace\"\n    ],\n    \"capabilities\": {\n        \"virtualWorkspaces\": true,\n        \"untrustedWorkspaces\": {\n            \"supported\": true\n        }\n    },\n    \"categories\": [\n        \"Other\"\n    ],\n    \"keywords\": [\n        \"bookmark\",\n        \"sticky\",\n        \"jump\",\n        \"mark\",\n        \"navigation\",\n        \"Delphi\",\n        \"multi-root ready\"\n    ],\n    \"icon\": \"images/icon.png\",\n    \"license\": \"GPL-3.0\",\n    \"homepage\": \"https://github.com/alefragnani/vscode-numbered-bookmarks/blob/master/README.md\",\n    \"repository\": {\n        \"type\": \"git\",\n        \"url\": \"https://github.com/alefragnani/vscode-numbered-bookmarks.git\"\n    },\n    \"bugs\": {\n        \"url\": \"https://github.com/alefragnani/vscode-numbered-bookmarks/issues\"\n    },\n    \"sponsor\": {\n        \"url\": \"https://github.com/sponsors/alefragnani\"\n    },\n    \"activationEvents\": [\n        \"onStartupFinished\"\n    ],\n    \"main\": \"./dist/extension-node.js\",\n    \"l10n\": \"./l10n\",\n    \"contributes\": {\n        \"commands\": [\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark0\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark0.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark1\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark1.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark2\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark2.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark3\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark3.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark4\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark4.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark5\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark5.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark6\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark6.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark7\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark7.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark8\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark8.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark9\",\n                \"title\": \"%numberedBookmarks.commands.toggleBookmark9.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark0\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark0.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark1\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark1.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark2\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark2.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark3\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark3.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark4\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark4.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark5\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark5.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark6\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark6.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark7\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark7.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark8\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark8.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark9\",\n                \"title\": \"%numberedBookmarks.commands.jumpToBookmark9.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.list\",\n                \"title\": \"%numberedBookmarks.commands.list.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.listFromAllFiles\",\n                \"title\": \"%numberedBookmarks.commands.listFromAllFiles.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.clear\",\n                \"title\": \"%numberedBookmarks.commands.clear.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.clearFromAllFiles\",\n                \"title\": \"%numberedBookmarks.commands.clearFromAllFiles.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.whatsNew\",\n                \"title\": \"%numberedBookmarks.commands.whatsNew.title%\",\n                \"category\": \"Numbered Bookmarks\"\n            },\n            {\n                \"command\": \"numberedBookmarks.whatsNewContextMenu\",\n                \"title\": \"%numberedBookmarks.commands.whatsNewContextMenu.title%\"\n            }\n        ],\n        \"submenus\": [\n            {\n                \"id\": \"numberedBookmarks.context.toggle\",\n                \"label\": \"%numberedBookmarks.context.toggle.label%\"\n            },\n            {\n                \"id\": \"numberedBookmarks.context.jump\",\n                \"label\": \"%numberedBookmarks.context.jump.label%\"\n            }\n        ],\n        \"configuration\": {\n            \"type\": \"object\",\n            \"title\": \"%numberedBookmarks.configuration.title%\",\n            \"properties\": {\n                \"numberedBookmarks.saveBookmarksInProject\": {\n                    \"type\": \"boolean\",\n                    \"default\": false,\n                    \"description\": \"%numberedBookmarks.configuration.saveBookmarksInProject.description%\"\n                },\n                \"numberedBookmarks.experimental.enableNewStickyEngine\": {\n                    \"type\": \"boolean\",\n                    \"default\": true,\n                    \"description\": \"%numberedBookmarks.configuration.experimental.enableNewStickyEngine.description%\"\n                },\n                \"numberedBookmarks.keepBookmarksOnLineDelete\": {\n                    \"type\": \"boolean\",\n                    \"default\": false,\n                    \"description\": \"%numberedBookmarks.configuration.keepBookmarksOnLineDelete.description%\"\n                },\n                \"numberedBookmarks.showBookmarkNotDefinedWarning\": {\n                    \"type\": \"boolean\",\n                    \"default\": false,\n                    \"description\": \"%numberedBookmarks.configuration.showBookmarkNotDefinedWarning.description%\"\n                },\n                \"numberedBookmarks.navigateThroughAllFiles\": {\n                    \"type\": \"string\",\n                    \"default\": \"false\",\n                    \"description\": \"%numberedBookmarks.configuration.navigateThroughAllFiles.description%\",\n                    \"enum\": [\n                        \"false\",\n                        \"replace\",\n                        \"allowDuplicates\"\n                    ]\n                },\n                \"numberedBookmarks.gutterIconFillColor\": {\n                    \"type\": \"string\",\n                    \"default\": \"#00ff25\",\n                    \"description\": \"%numberedBookmarks.configuration.gutterIconFillColor.description%\"\n                },\n                \"numberedBookmarks.gutterIconNumberColor\": {\n                    \"type\": \"string\",\n                    \"default\": \"#000\",\n                    \"description\": \"%numberedBookmarks.configuration.gutterIconNumberColor.description%\"\n                },\n                \"numberedBookmarks.revealLocation\": {\n                    \"type\": \"string\",\n                    \"default\": \"center\",\n                    \"description\": \"%numberedBookmarks.configuration.revealLocation.description%\",\n                    \"enum\": [\n                        \"top\",\n                        \"center\"\n                    ],\n                    \"enumDescriptions\": [\n                        \"%numberedBookmarks.configuration.revealLocation.enumDescriptions.top%\",\n                        \"%numberedBookmarks.configuration.revealLocation.enumDescriptions.center%\"\n                    ]\n                }\n            }\n        },\n        \"keybindings\": [\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark1\",\n                \"key\": \"ctrl+shift+1\",\n                \"mac\": \"cmd+shift+1\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark2\",\n                \"key\": \"ctrl+shift+2\",\n                \"mac\": \"cmd+shift+2\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark3\",\n                \"key\": \"ctrl+shift+3\",\n                \"mac\": \"cmd+shift+3\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark4\",\n                \"key\": \"ctrl+shift+4\",\n                \"mac\": \"cmd+shift+4\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark5\",\n                \"key\": \"ctrl+shift+5\",\n                \"mac\": \"cmd+shift+5\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark6\",\n                \"key\": \"ctrl+shift+6\",\n                \"mac\": \"cmd+shift+6\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark7\",\n                \"key\": \"ctrl+shift+7\",\n                \"mac\": \"cmd+shift+7\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark8\",\n                \"key\": \"ctrl+shift+8\",\n                \"mac\": \"cmd+shift+8\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.toggleBookmark9\",\n                \"key\": \"ctrl+shift+9\",\n                \"mac\": \"cmd+shift+9\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark1\",\n                \"key\": \"ctrl+1\",\n                \"mac\": \"cmd+1\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark2\",\n                \"key\": \"ctrl+2\",\n                \"mac\": \"cmd+2\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark3\",\n                \"key\": \"ctrl+3\",\n                \"mac\": \"cmd+3\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark4\",\n                \"key\": \"ctrl+4\",\n                \"mac\": \"cmd+4\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark5\",\n                \"key\": \"ctrl+5\",\n                \"mac\": \"cmd+5\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark6\",\n                \"key\": \"ctrl+6\",\n                \"mac\": \"cmd+6\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark7\",\n                \"key\": \"ctrl+7\",\n                \"mac\": \"cmd+7\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark8\",\n                \"key\": \"ctrl+8\",\n                \"mac\": \"cmd+8\",\n                \"when\": \"editorTextFocus\"\n            },\n            {\n                \"command\": \"numberedBookmarks.jumpToBookmark9\",\n                \"key\": \"ctrl+9\",\n                \"mac\": \"cmd+9\",\n                \"when\": \"editorTextFocus\"\n            }\n        ],\n        \"colors\": [\n            {\n                \"id\": \"numberedBookmarks.lineBackground\",\n                \"description\": \"%numberedBookmarks.colors.lineBackground.description%\",\n                \"defaults\": {\n                    \"dark\": \"#00000000\",\n                    \"light\": \"#00000000\",\n                    \"highContrast\": \"#00000000\"\n                }\n            },\n            {\n                \"id\": \"numberedBookmarks.lineBorder\",\n                \"description\": \"%numberedBookmarks.colors.lineBorder.description%\",\n                \"defaults\": {\n                    \"dark\": \"#00000000\",\n                    \"light\": \"#00000000\",\n                    \"highContrast\": \"#00000000\"\n                }\n            },\n            {\n                \"id\": \"numberedBookmarks.overviewRuler\",\n                \"description\": \"%numberedBookmarks.colors.overviewRuler.description%\",\n                \"defaults\": {\n                    \"dark\": \"#12ff1288\",\n                    \"light\": \"#12ff1288\",\n                    \"highContrast\": \"#12ff1288\"\n                }\n            }\n        ],\n        \"menus\": {\n            \"commandPalette\": [\n                {\n                    \"command\": \"numberedBookmarks.whatsNewContextMenu\",\n                    \"when\": \"false\"\n                }\n            ],\n            \"extension/context\": [\n                {\n                    \"command\": \"numberedBookmarks.whatsNewContextMenu\",\n                    \"group\": \"numberedBookmarks\",\n                    \"when\": \"extension == alefragnani.numbered-bookmarks && extensionStatus==installed\"\n                }\n            ],\n            \"editor/context\": [\n                {\n                    \"submenu\": \"numberedBookmarks.context.toggle\",\n                    \"group\": \"numberedBookmarks@1\"\n                },\n                {\n                    \"submenu\": \"numberedBookmarks.context.jump\",\n                    \"group\": \"numberedBookmarks@2\"\n                }\n            ],\n            \"numberedBookmarks.context.toggle\": [\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark1\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark2\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark3\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark4\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark5\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark6\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark7\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark8\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark9\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.toggleBookmark0\",\n                    \"group\": \"numberedBookmarks@10\"\n                }\n            ],\n            \"numberedBookmarks.context.jump\": [\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark1\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark2\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark3\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark4\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark5\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark6\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark7\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark8\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark9\",\n                    \"group\": \"numberedBookmarks\"\n                },\n                {\n                    \"command\": \"numberedBookmarks.jumpToBookmark0\",\n                    \"group\": \"numberedBookmarks@10\"\n                }\n            ]\n        },\n        \"walkthroughs\": [\n            {\n                \"id\": \"numberedBookmarksWelcome\",\n                \"title\": \"%numberedBookmarks.walkthroughs.title%\",\n                \"description\": \"%numberedBookmarks.walkthroughs.description%\",\n                \"steps\": [\n                    {\n                        \"id\": \"toggle\",\n                        \"title\": \"%numberedBookmarks.walkthroughs.toggle.title%\",\n                        \"description\": \"%numberedBookmarks.walkthroughs.toggle.description%\",\n                        \"media\": {\n                            \"markdown\": \"walkthrough/toggle.md\"\n                        }\n                    },\n                    {\n                        \"id\": \"navigateToNumberedBookmarks\",\n                        \"title\": \"%numberedBookmarks.walkthroughs.navigateToNumberedBookmarks.title%\",\n                        \"description\": \"%numberedBookmarks.walkthroughs.navigateToNumberedBookmarks.description%\",\n                        \"media\": {\n                            \"markdown\": \"walkthrough/navigateToNumberedBookmarks.md\"\n                        }\n                    },\n                    {\n                        \"id\": \"inspiredInDelphiButOpenToOthers\",\n                        \"title\": \"%numberedBookmarks.walkthroughs.inspiredInDelphiButOpenToOthers.title%\",\n                        \"description\": \"%numberedBookmarks.walkthroughs.inspiredInDelphiButOpenToOthers.description%\",\n                        \"media\": {\n                            \"markdown\": \"walkthrough/inspiredInDelphiButOpenToOthers.md\"\n                        }\n                    },\n                    {\n                        \"id\": \"workingWithRemotes\",\n                        \"title\": \"%numberedBookmarks.walkthroughs.workingWithRemotes.title%\",\n                        \"description\": \"%numberedBookmarks.walkthroughs.workingWithRemotes.description%\",\n                        \"media\": {\n                            \"markdown\": \"walkthrough/workingWithRemotes.md\"\n                        }\n                    },\n                    {\n                        \"id\": \"customizingAppearance\",\n                        \"title\": \"%numberedBookmarks.walkthroughs.customizingAppearance.title%\",\n                        \"description\": \"%numberedBookmarks.walkthroughs.customizingAppearance.description%\",\n                        \"media\": {\n                            \"markdown\": \"walkthrough/customizingAppearance.md\"\n                        }\n                    }\n                ]\n            }\n        ]\n    },\n    \"eslintConfig\": {\n        \"extends\": [\n            \"vscode-ext\"\n        ]\n    },\n    \"scripts\": {\n        \"build\": \"webpack --mode development\",\n        \"watch\": \"webpack --watch --mode development\",\n        \"vscode:prepublish\": \"webpack --mode production\",\n        \"webpack\": \"webpack --mode development\",\n        \"webpack-dev\": \"webpack --mode development --watch\",\n        \"compile\": \"tsc -p ./\",\n        \"lint\": \"eslint -c package.json --ext .ts src vscode-whats-new\",\n        \"pretest\": \"npm run compile && npm run lint\",\n        \"test-compile\": \"tsc -p ./ && npm run webpack\",\n        \"just-test\": \"node ./out/src/test/runTest.js\",\n        \"test\": \"npm run test-compile && npm run just-test\"\n    },\n    \"dependencies\": {\n        \"os-browserify\": \"^0.3.0\",\n        \"path-browserify\": \"^1.0.1\",\n        \"vscode-ext-codicons\": \"^1.1.0\",\n        \"vscode-ext-decoration\": \"1.1.0\"\n    },\n    \"devDependencies\": {\n        \"@types/glob\": \"^8.1.0\",\n        \"@types/mocha\": \"^10.0.0\",\n        \"@types/node\": \"^18.17.0\",\n        \"@types/vscode\": \"^1.73.0\",\n        \"@typescript-eslint/eslint-plugin\": \"^6.21.0\",\n        \"@typescript-eslint/parser\": \"^6.21.0\",\n        \"@vscode/test-electron\": \"^2.5.2\",\n        \"eslint\": \"^8.1.0\",\n        \"eslint-config-vscode-ext\": \"^1.1.0\",\n        \"mocha\": \"^11.1.0\",\n        \"terser-webpack-plugin\": \"^5.2.4\",\n        \"ts-loader\": \"^9.2.5\",\n        \"typescript\": \"^5.3.3\",\n        \"webpack\": \"^5.105.0\",\n        \"webpack-cli\": \"^4.8.0\"\n    }\n}\n"
  },
  {
    "path": "package.nls.json",
    "content": "{\n    \"numberedBookmarks.commands.toggleBookmark0.title\": \"Toggle Bookmark 0\",\n    \"numberedBookmarks.commands.toggleBookmark1.title\": \"Toggle Bookmark 1\",\n    \"numberedBookmarks.commands.toggleBookmark2.title\": \"Toggle Bookmark 2\",\n    \"numberedBookmarks.commands.toggleBookmark3.title\": \"Toggle Bookmark 3\",\n    \"numberedBookmarks.commands.toggleBookmark4.title\": \"Toggle Bookmark 4\",\n    \"numberedBookmarks.commands.toggleBookmark5.title\": \"Toggle Bookmark 5\",\n    \"numberedBookmarks.commands.toggleBookmark6.title\": \"Toggle Bookmark 6\",\n    \"numberedBookmarks.commands.toggleBookmark7.title\": \"Toggle Bookmark 7\",\n    \"numberedBookmarks.commands.toggleBookmark8.title\": \"Toggle Bookmark 8\",\n    \"numberedBookmarks.commands.toggleBookmark9.title\": \"Toggle Bookmark 9\",\n    \"numberedBookmarks.commands.jumpToBookmark0.title\": \"Jump to Bookmark 0\",\n    \"numberedBookmarks.commands.jumpToBookmark1.title\": \"Jump to Bookmark 1\",\n    \"numberedBookmarks.commands.jumpToBookmark2.title\": \"Jump to Bookmark 2\",\n    \"numberedBookmarks.commands.jumpToBookmark3.title\": \"Jump to Bookmark 3\",\n    \"numberedBookmarks.commands.jumpToBookmark4.title\": \"Jump to Bookmark 4\",\n    \"numberedBookmarks.commands.jumpToBookmark5.title\": \"Jump to Bookmark 5\",\n    \"numberedBookmarks.commands.jumpToBookmark6.title\": \"Jump to Bookmark 6\",\n    \"numberedBookmarks.commands.jumpToBookmark7.title\": \"Jump to Bookmark 7\",\n    \"numberedBookmarks.commands.jumpToBookmark8.title\": \"Jump to Bookmark 8\",\n    \"numberedBookmarks.commands.jumpToBookmark9.title\": \"Jump to Bookmark 9\",\n    \"numberedBookmarks.commands.list.title\": \"List\",\n    \"numberedBookmarks.commands.listFromAllFiles.title\": \"List from All Files\",\n    \"numberedBookmarks.commands.clear.title\": \"Clear\",\n    \"numberedBookmarks.commands.clearFromAllFiles.title\": \"Clear from All Files\",\n    \"numberedBookmarks.commands.whatsNew.title\": \"What's New\",\n    \"numberedBookmarks.commands.whatsNewContextMenu.title\": \"What's New\",\n    \"numberedBookmarks.context.toggle.label\": \"Numbered Bookmarks: Toggle\",\n    \"numberedBookmarks.context.jump.label\": \"Numbered Bookmarks: Jump\",\n    \"numberedBookmarks.configuration.title\": \"Numbered Bookmarks\",\n    \"numberedBookmarks.configuration.saveBookmarksInProject.description\": \"Allow bookmarks to be saved (and restored) locally in the opened Project/Folder instead of VS Code\",\n    \"numberedBookmarks.configuration.experimental.enableNewStickyEngine.description\": \"Experimental. Enables the new Sticky engine with support for Formatters, improved source change detections and undo operations\",\n    \"numberedBookmarks.configuration.keepBookmarksOnLineDelete.description\": \"Specifies whether bookmarks on deleted line should be kept on file, moving it down to the next line, instead of deleting it with the line where it was toggled.\",\n    \"numberedBookmarks.configuration.showBookmarkNotDefinedWarning.description\": \"Controls whether to show a warning when a bookmark is not defined\",\n    \"numberedBookmarks.configuration.navigateThroughAllFiles.description\": \"Allow navigation look for bookmarks in all files in the project, instead of only the current\",\n    \"numberedBookmarks.configuration.gutterIconFillColor.description\": \"Specify the color to use on gutter icon (fill color)\",\n    \"numberedBookmarks.configuration.gutterIconNumberColor.description\": \"Specify the color to use on gutter icon (number color)\",\n    \"numberedBookmarks.configuration.revealLocation.description\": \"Specifies the location where the bookmarked line will be revealed\",\n    \"numberedBookmarks.configuration.revealLocation.enumDescriptions.top\": \"Reveals the bookmarked line at the top of the editor\",\n    \"numberedBookmarks.configuration.revealLocation.enumDescriptions.center\": \"Reveals the bookmarked line in the center of the editor\",\n    \"numberedBookmarks.colors.lineBackground.description\": \"Background color for the bookmarked line\",\n    \"numberedBookmarks.colors.lineBorder.description\": \"Background color for the border around the bookmarked line\",\n    \"numberedBookmarks.colors.overviewRuler.description\": \"Overview ruler marker color for bookmarks\",\n    \"numberedBookmarks.walkthroughs.title\": \"Get Started with Numbered Bookmarks\",\n    \"numberedBookmarks.walkthroughs.description\": \"Learn more about Numbered Bookmarks to optimize your workflow\",\n    \"numberedBookmarks.walkthroughs.toggle.title\": \"Toggle Numbered Bookmarks\",\n    \"numberedBookmarks.walkthroughs.toggle.description\": \"Easily Mark/Unmark Numbered Bookmarks at any position.\\nAn icon is added to both the gutter and overview ruler to easily identify the lines with Numbered Bookmarks.\",\n    \"numberedBookmarks.walkthroughs.navigateToNumberedBookmarks.title\": \"Navigate to Numbered Bookmarks\",\n    \"numberedBookmarks.walkthroughs.navigateToNumberedBookmarks.description\": \"Quickly jump between bookmarked lines.\\nSearch numbered bookmarks using the line's content and/or position.\",\n    \"numberedBookmarks.walkthroughs.inspiredInDelphiButOpenToOthers.title\": \"Inspired in Delphi, but open to others\",\n    \"numberedBookmarks.walkthroughs.inspiredInDelphiButOpenToOthers.description\": \"The extension was inspired in Delphi, because I was a Delphi developer for a long time, and love it's bookmarks, but it supports different editors as well.\",\n    \"numberedBookmarks.walkthroughs.workingWithRemotes.title\": \"Working with Remotes\",\n    \"numberedBookmarks.walkthroughs.workingWithRemotes.description\": \"The extension support [Remote Development](https://code.visualstudio.com/docs/remote/remote-overview) scenarios. Even installed locally, you can use Numbered Bookmarks in WSL, Containers, SSH and Codespaces.\",\n    \"numberedBookmarks.walkthroughs.customizingAppearance.title\": \"Customizing Appearance\",\n    \"numberedBookmarks.walkthroughs.customizingAppearance.description\": \"Customize how Numbered Bookmarks are presented, its icon, line and overview ruler\\n[Open Settings - Gutter Icon](command:workbench.action.openSettings?%5B%22numberedBookmarks.gutterIcon%22%5D)\\n[Open Settings - Line](command:workbench.action.openSettingsJson?%5B%22workbench.colorCustomizations%22%5D)\"\n\n}"
  },
  {
    "path": "package.nls.pt-br.json",
    "content": "{\n    \"numberedBookmarks.commands.toggleBookmark0.title\": \"Alternar Bookmark 0\",\n    \"numberedBookmarks.commands.toggleBookmark1.title\": \"Alternar Bookmark 1\",\n    \"numberedBookmarks.commands.toggleBookmark2.title\": \"Alternar Bookmark 2\",\n    \"numberedBookmarks.commands.toggleBookmark3.title\": \"Alternar Bookmark 3\",\n    \"numberedBookmarks.commands.toggleBookmark4.title\": \"Alternar Bookmark 4\",\n    \"numberedBookmarks.commands.toggleBookmark5.title\": \"Alternar Bookmark 5\",\n    \"numberedBookmarks.commands.toggleBookmark6.title\": \"Alternar Bookmark 6\",\n    \"numberedBookmarks.commands.toggleBookmark7.title\": \"Alternar Bookmark 7\",\n    \"numberedBookmarks.commands.toggleBookmark8.title\": \"Alternar Bookmark 8\",\n    \"numberedBookmarks.commands.toggleBookmark9.title\": \"Alternar Bookmark 9\",\n    \"numberedBookmarks.commands.jumpToBookmark0.title\": \"Pular para Bookmark 0\",\n    \"numberedBookmarks.commands.jumpToBookmark1.title\": \"Pular para Bookmark 1\",\n    \"numberedBookmarks.commands.jumpToBookmark2.title\": \"Pular para Bookmark 2\",\n    \"numberedBookmarks.commands.jumpToBookmark3.title\": \"Pular para Bookmark 3\",\n    \"numberedBookmarks.commands.jumpToBookmark4.title\": \"Pular para Bookmark 4\",\n    \"numberedBookmarks.commands.jumpToBookmark5.title\": \"Pular para Bookmark 5\",\n    \"numberedBookmarks.commands.jumpToBookmark6.title\": \"Pular para Bookmark 6\",\n    \"numberedBookmarks.commands.jumpToBookmark7.title\": \"Pular para Bookmark 7\",\n    \"numberedBookmarks.commands.jumpToBookmark8.title\": \"Pular para Bookmark 8\",\n    \"numberedBookmarks.commands.jumpToBookmark9.title\": \"Pular para Bookmark 9\",\n    \"numberedBookmarks.commands.list.title\": \"Listar\",\n    \"numberedBookmarks.commands.listFromAllFiles.title\": \"Listar de Todos os Arquivos\",\n    \"numberedBookmarks.commands.clear.title\": \"Limpar\",\n    \"numberedBookmarks.commands.clearFromAllFiles.title\": \"Limpar de Todos os Arquivos\",\n    \"numberedBookmarks.commands.whatsNew.title\": \"Novidades\",\n    \"numberedBookmarks.commands.whatsNewContextMenu.title\": \"Novidades\",\n    \"numberedBookmarks.context.toggle.label\": \"Numbered Bookmarks: Alternar\",\n    \"numberedBookmarks.context.jump.label\": \"Numbered Bookmarks: Pular\",\n    \"numberedBookmarks.configuration.title\": \"Numbered Bookmarks\",\n    \"numberedBookmarks.configuration.saveBookmarksInProject.description\": \"Permite que os Bookmarks sejam salvos (e restaurados) localmente no Projeto/Pasta aberto ao invés do VS Code\",\n    \"numberedBookmarks.configuration.experimental.enableNewStickyEngine.description\": \"Experimental. Ativa o novo motor Sticky engine com suporte a Formatadores, detecção de mudança de fonte e operações de desfazer melhoradas\",\n    \"numberedBookmarks.configuration.keepBookmarksOnLineDelete.description\": \"Determina se bookmarks em linhas excluídas devem ser mantidos no arquivo, movendo-os para a próxima linha, ao invés de excluídos com a linha onde se encontravam\",\n    \"numberedBookmarks.configuration.showBookmarkNotDefinedWarning.description\": \"Define se uma notificação deve ser apresentada quando o Bookmark não está definido.\",\n    \"numberedBookmarks.configuration.navigateThroughAllFiles.description\": \"Permite que a navegação apresente Bookmarks em todos os arquivos do projeto, ao invés de apenas no arquivo corrente\",\n    \"numberedBookmarks.configuration.gutterIconFillColor.description\": \"Cor de fundo do ícone de Bookmark\",\n    \"numberedBookmarks.configuration.gutterIconNumberColor.description\": \"Cor do número no ícone de Bookmark\",\n    \"numberedBookmarks.configuration.revealLocation.description\": \"Especifica o local onde a linha com bookmark será exibida\",\n    \"numberedBookmarks.configuration.revealLocation.enumDescriptions.top\": \"Exibe a linha com bookmark no topo do editor\",\n    \"numberedBookmarks.configuration.revealLocation.enumDescriptions.center\": \"Exibe a linha com bookmark no centro do editor\",\n    \"numberedBookmarks.colors.lineBackground.description\": \"Cor de fundo para linha com Bookmark\",\n    \"numberedBookmarks.colors.lineBorder.description\": \"Cor de fundo da borda ao redor da linha com Bookmark\",\n    \"numberedBookmarks.colors.overviewRuler.description\": \"Cor do marcador de régua com Bookmarks\"\n}"
  },
  {
    "path": "src/core/bookmark.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { QuickPickItem, Uri } from \"vscode\";\n\nexport interface Bookmark {\n  line: number;\n  column: number;\n}\n\nexport interface BookmarkQuickPickItem extends QuickPickItem {\n  uri: Uri;\n}\n"
  },
  {
    "path": "src/core/constants.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nexport const MAX_BOOKMARKS = 10;\n\nexport const NO_BOOKMARK_DEFINED = {\n    line: -1,\n    column: 0\n}\n\nexport const UNTITLED_SCHEME = \"untitled\";\n\nexport const DEFAULT_GUTTER_ICON_FILL_COLOR = \"#00ff25\";\nexport const DEFAULT_GUTTER_ICON_NUMBER_COLOR = \"#000\";\n"
  },
  {
    "path": "src/core/container.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { ExtensionContext } from \"vscode\";\n\nexport class Container {\n    private static _extContext: ExtensionContext;\n  \n    public static get context(): ExtensionContext {\n      return this._extContext;\n    }\n  \n    public static set context(ec: ExtensionContext) {\n      this._extContext = ec;\n    }\n}\n  "
  },
  {
    "path": "src/core/controller.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport os = require(\"os\");\nimport path = require(\"path\");\nimport { Uri, WorkspaceFolder } from \"vscode\";\nimport { File } from \"./file\";\nimport { getFileUri, getRelativePath } from \"../utils/fs\";\nimport { createFile } from \"./file\";\nimport { isBookmarkDefined } from \"./operations\";\nimport { UNTITLED_SCHEME } from \"./constants\";\n\nexport class Controller {\n        public files: File[];\n        public workspaceFolder: WorkspaceFolder | undefined;\n\n        constructor(workspaceFolder: WorkspaceFolder | undefined) {\n            this.workspaceFolder = workspaceFolder;\n            this.files = [];\n        }\n\n        public loadFrom(jsonObject, relativePath?) {\n            if (jsonObject === \"\") {\n                return;\n            }\n\n            // OLD format\n            if ((jsonObject.bookmarks)) {\n                const jsonBookmarks = jsonObject.bookmarks;\n                // tslint:disable-next-line: prefer-for-of\n                for (let idx = 0; idx < jsonBookmarks.length; idx++) {\n                    const jsonBookmark = jsonBookmarks[ idx ];\n\n                    // untitled files, ignore (for now)\n                    const ff = <string>jsonBookmark.fsPath;\n                    if (ff.match(/Untitled-\\d+/)) {\n                        continue;\n                    }\n                    \n                    const file = relativePath\n                        ? createFile(jsonBookmark.fsPath.replace(`$ROOTPATH$${path.sep}`, \"\"))\n                        : createFile(getRelativePath(this.workspaceFolder?.uri?.fsPath, jsonBookmark.fsPath));\n\n                    // Win32 uses `\\\\` but uris always uses `/`\n                    if (os.platform() === \"win32\") {\n                        file.path = file.path.replace(/\\\\/g, \"/\");\n                    }\n\n                    const bmksPosition = jsonBookmark.bookmarks.map(bmk => {\n                        return {line: bmk, column: 0}\n                    });\n                    file.bookmarks = [\n                        ...bmksPosition\n                    ]\n                    this.files.push(file);\n                }\n            } else { // NEW format\n                for (const file of jsonObject.files) {\n\n                    const bookmark = createFile(file.path);//??, file.uri ? <Uri>file.uri : undefined);\n                    bookmark.bookmarks = [\n                        ...file.bookmarks\n                    ]\n                    this.files.push(bookmark);\n                }\n            }        \n        }\n\n        public fromUri(uri: Uri) {\n            if (uri.scheme === UNTITLED_SCHEME) {\n                for (const file of this.files) {\n                    if (file.uri?.toString() === uri.toString()) {\n                        return file;\n                    }\n                }\n                return;\n            }\n            \n            const uriPath = !this.workspaceFolder \n                ? uri.path\n                : getRelativePath(this.workspaceFolder.uri.path, uri.path);\n            \n            for (const file of this.files) {\n                if (file.path === uriPath) {\n                    return file;\n                }\n            }\n        }\n\n        public indexFromPath(filePath: string) {\n            for (let index = 0; index < this.files.length; index++) {\n                const file = this.files[index];\n\n                if (file.path === filePath) {\n                    return index;\n                }\n            }\n        }\n\n        public addFile(uri: Uri) {\n            if (uri.scheme === UNTITLED_SCHEME) {\n                // let foundFile: File;\n                // for (const file of this.files) {\n                //     if (file.uri?.toString() === uri.toString()) {\n                //         foundFile = file;\n                //     }\n                // }\n\n                // if (!foundFile) {\n                    const file = createFile(uri.path, uri);\n                    this.files.push(file);\n                // }\n                return;\n            }\n\n            const uriPath = !this.workspaceFolder \n                ? uri.path \n                : getRelativePath(this.workspaceFolder.uri.path, uri.path);\n\n            const paths = this.files.map(file => file.path);\n            if (paths.indexOf(uriPath) < 0) {\n                const bookmark = createFile(uriPath);\n                this.files.push(bookmark);\n            }\n        }\n\n        public getFileUri(file: File) {\n            return getFileUri(file, this.workspaceFolder);\n        }\n\n        public zip(): Controller {\n            function isNotEmpty(book: File): boolean {\n                let hasAny = false;\n                for (const element of book.bookmarks) {\n                    hasAny = isBookmarkDefined(element);\n                    if (hasAny) {\n                        break;\n                    }\n                }\n                return hasAny;\n            }\n\n            function isValid(file: File): boolean {\n                return !file.uri ; // Untitled files\n            }\n\n            function canBeSaved(file: File): boolean {\n                return isValid(file) && isNotEmpty(file);\n            }\n            \n            const newBookmarks: Controller = new Controller(this.workspaceFolder);\n            newBookmarks.files = JSON.parse(JSON.stringify(this.files)).filter(canBeSaved);\n\n            delete newBookmarks.workspaceFolder;\n\n            return newBookmarks;\n        }    \n        \n        public updateFilePath(oldFilePath: string, newFilePath: string): void {\n            for (const file of this.files) {\n                if (file.path === oldFilePath) {\n                    file.path = newFilePath;\n                    break;\n                }\n            }\n        }\n\n        public updateDirectoryPath(oldDirectoryPath: string, newDirectoryPath: string): void {\n            for (const file of this.files) {\n                if (file.path.startsWith(oldDirectoryPath)) {\n                    file.path = file.path.replace(oldDirectoryPath, newDirectoryPath);\n                }\n            }\n        }\n    }\n"
  },
  {
    "path": "src/core/file.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { Uri } from \"vscode\";\nimport { Bookmark } from \"./bookmark\";\nimport { MAX_BOOKMARKS } from \"./constants\";\nimport { clearBookmarks } from \"./operations\";\n\nexport interface File {\n  path: string;\n  bookmarks: Bookmark[];\n  uri?: Uri;\n}\n\nexport function createFile(filePath: string, uri?: Uri): File {\n  const newFile: File = {\n    path: filePath,\n    bookmarks: [],\n    uri\n  } \n  newFile.bookmarks.length = MAX_BOOKMARKS;\n  clearBookmarks(newFile);\n  return newFile;\n}\n"
  },
  {
    "path": "src/core/operations.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { Uri, workspace, WorkspaceFolder } from \"vscode\";\nimport { Bookmark, BookmarkQuickPickItem } from \"./bookmark\";\nimport { MAX_BOOKMARKS, NO_BOOKMARK_DEFINED } from \"./constants\";\nimport { uriExists } from \"../utils/fs\";\nimport { File } from \"./file\";\n\nexport function isBookmarkDefined(bookmark: Bookmark): boolean {\n    return bookmark.line !== NO_BOOKMARK_DEFINED.line;\n}\n\nexport function hasBookmarks(file: File): boolean {\n    let hasAny = false;\n    for (const element of file.bookmarks) {\n        hasAny = isBookmarkDefined(element);\n        if (hasAny) {\n            break;\n        }\n    }\n    return hasAny;\n}\n\nexport function listBookmarks(file: File, workspaceFolder: WorkspaceFolder) {\n\n    // eslint-disable-next-line no-async-promise-executor\n    return new Promise(async (resolve, reject) => {\n\n        if (!hasBookmarks(file)) {\n            resolve({});\n            return;\n        }\n\n        let uriDocBookmark: Uri;\n        if (file.uri) {\n            uriDocBookmark = file.uri;\n        } else {\n            if (!workspaceFolder) {\n                uriDocBookmark = Uri.file(file.path);\n            } else {\n                const prefix = workspaceFolder.uri.path.endsWith(\"/\")\n                    ? workspaceFolder.uri.path\n                    : `${workspaceFolder.uri.path}/`;\n                uriDocBookmark = workspaceFolder.uri.with({\n                    path: `${prefix}/${file.path}`\n                });\n            }\n        }\n\n        if (! await uriExists(uriDocBookmark)) {\n            resolve({});\n            return;\n        }\n\n        workspace.openTextDocument(uriDocBookmark).then(doc => {\n\n            const items: BookmarkQuickPickItem[] = [];\n            const invalids = [];\n            for (const element of file.bookmarks) {\n                // fix for modified files\n                if (isBookmarkDefined(element)) {\n                    if (element.line <= doc.lineCount) {\n                        const bookmarkLine = element.line + 1;\n                        const bookmarkColumn = element.column + 1;\n                        const lineText = doc.lineAt(bookmarkLine - 1).text.trim();\n                        items.push({\n                            label: lineText, \n                            description: \"(Ln \" + bookmarkLine.toString() + \", Col \" + \n                                bookmarkColumn.toString() + \")\",\n                            detail: file.path,\n                            uri: uriDocBookmark\n                        });\n                    } else {\n                        invalids.push(element);\n                    }\n                }\n            }\n\n            if (invalids.length > 0) {\n                // tslint:disable-next-line:prefer-for-of\n                for (let indexI = 0; indexI < invalids.length; indexI++) {\n                    file.bookmarks[ invalids[ indexI ] ] = NO_BOOKMARK_DEFINED;\n                }\n            }\n\n            resolve(items);\n            return;\n        });\n    });\n}\n\nexport function clearBookmarks(file: File) {\n    for (let index = 0; index < MAX_BOOKMARKS; index++) {\n        file.bookmarks[ index ] = NO_BOOKMARK_DEFINED;\n    }\n}\n\nexport function indexOfBookmark(file: File, line: number): number {\n    for (let index = 0; index < file.bookmarks.length; index++) {\n        const bookmark = file.bookmarks[index];\n        if (bookmark.line === line) {\n            return index;\n        }\n    }\n    return -1;\n}\n"
  },
  {
    "path": "src/decoration/decoration.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { DecorationRenderOptions, OverviewRulerLane, Range, TextEditor, TextEditorDecorationType, ThemeColor, Uri, workspace, window } from \"vscode\";\nimport { createLineDecoration } from \"vscode-ext-decoration\";\nimport { DEFAULT_GUTTER_ICON_NUMBER_COLOR, DEFAULT_GUTTER_ICON_FILL_COLOR, MAX_BOOKMARKS, NO_BOOKMARK_DEFINED } from \"../core/constants\";\nimport { File } from \"../core/file\";\nimport { clearBookmarks } from \"../core/operations\";\n\nfunction createGutterRulerDecoration(\n    overviewRulerLane?: OverviewRulerLane,\n    overviewRulerColor?: string | ThemeColor,\n    gutterIconPath?: string | Uri): TextEditorDecorationType {\n\n    const decorationOptions: DecorationRenderOptions = {\n        gutterIconPath,\n        overviewRulerLane,\n        overviewRulerColor\n    };\n\n    decorationOptions.isWholeLine = false;\n\n    return window.createTextEditorDecorationType(decorationOptions);\n}\n\nexport interface TextEditorDecorationTypePair {\n    gutterDecoration: TextEditorDecorationType;\n    lineDecoration: TextEditorDecorationType;\n}\n\nexport function createBookmarkDecorations(): TextEditorDecorationTypePair[] {\n    const decorators: TextEditorDecorationTypePair[] = [];\n    for (let number = 0; number <= 9; number++) {\n        const iconFillColor = workspace.getConfiguration(\"numberedBookmarks\").get(\"gutterIconFillColor\", DEFAULT_GUTTER_ICON_FILL_COLOR);\n        const iconNumberColor = workspace.getConfiguration(\"numberedBookmarks\").get(\"gutterIconNumberColor\", DEFAULT_GUTTER_ICON_NUMBER_COLOR);\n        const iconPath = Uri.parse(\n            `data:image/svg+xml,${encodeURIComponent(\n                `<svg xmlns=\"http://www.w3.org/2000/svg\"> <g fill=\"none\" fill-rule=\"evenodd\" stroke=\"none\" stroke-width=\"1\"> <g fill=\"${iconFillColor}\" stroke=\"null\"><path d=\"M5.573914546804859,0.035123038858889274 C4.278736002284275,0.035123038858889274 3.228793828301391,0.9189688905396587 3.228793828301391,2.005394862080541 L3.228793828301391,15.844184705765102 L7.923495246522241,11.89191599548129 L12.618212313799981,15.844184705765102 L12.618212313799981,2.005394862080541 C12.618212313799981,0.9172430665361684 11.56845792849979,0.035123038858889274 10.273075946239627,0.035123038858889274 L5.573898897747966,0.035123038858889274 L5.573914546804859,0.035123038858889274 z\" stroke=\"null\"></path></g> </g> <text text-anchor=\"middle\" alignment-baseline=\"middle\" x=\"7.6\" y=\"7.5\" fill=\"${iconNumberColor}\" font-weight=\"bold\" font-size=\"9\" font-family=\"Menlo, Monaco, monospace\">${number}</text> </svg>`,\n            )}`,\n        );\n        \n        const overviewRulerColor = new ThemeColor('numberedBookmarks.overviewRuler');\n        const lineBackground = new ThemeColor('numberedBookmarks.lineBackground');\n        const lineBorder = new ThemeColor('numberedBookmarks.lineBorder');\n\n        const gutterDecoration = createGutterRulerDecoration(OverviewRulerLane.Full, overviewRulerColor, iconPath);\n        const lineDecoration = createLineDecoration(lineBackground, lineBorder);\n        decorators.push( { gutterDecoration, lineDecoration });\n    }\n    return decorators;\n}\n\nexport function updateDecorationsInActiveEditor(activeEditor: TextEditor, activeBookmark: File,\n    getDecorationPair: (n: number) => TextEditorDecorationTypePair) {\n    \n    if (!activeEditor) {\n        return;\n    }\n\n    if (!activeBookmark) {\n        return;\n    }\n\n    let books: Range[] = [];\n    // Remove all bookmarks if active file is empty\n    if (activeEditor.document.lineCount === 1 && activeEditor.document.lineAt(0).text === \"\") {\n        clearBookmarks(activeBookmark);\n    } else {\n        const invalids = [];\n        for (let index = 0; index < MAX_BOOKMARKS; index++) {\n            books = [];\n            if (activeBookmark.bookmarks[ index ].line < 0) {\n                const decors = getDecorationPair(index);\n                activeEditor.setDecorations(decors.gutterDecoration, books);\n                activeEditor.setDecorations(decors.lineDecoration, books);\n            } else {\n                const element = activeBookmark.bookmarks[ index ];\n                if (element.line < activeEditor.document.lineCount) {\n                    const decoration = new Range(element.line, 0, element.line, 0);\n                    books.push(decoration);\n                    const decors = getDecorationPair(index);\n                    activeEditor.setDecorations(decors.gutterDecoration, books);\n                    activeEditor.setDecorations(decors.lineDecoration, books);\n                } else {\n                    invalids.push(index);\n                }\n            }\n        }\n\n        if (invalids.length > 0) {\n            // tslint:disable-next-line:prefer-for-of\n            for (let indexI = 0; indexI < invalids.length; indexI++) {\n                activeBookmark.bookmarks[ invalids[ indexI ] ] = NO_BOOKMARK_DEFINED;\n            }\n        }\n    }\n}"
  },
  {
    "path": "src/extension.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from \"vscode\";\nimport { l10n, Position, TextDocument, Uri } from \"vscode\";\n\nimport { Bookmark, BookmarkQuickPickItem } from \"./core/bookmark\";\nimport { NO_BOOKMARK_DEFINED } from \"./core/constants\";\nimport { Controller } from \"./core/controller\";\nimport { clearBookmarks, hasBookmarks, indexOfBookmark, isBookmarkDefined, listBookmarks } from \"./core/operations\";\nimport { revealPosition, previewPositionInDocument, revealPositionInDocument } from \"./utils/reveal\";\nimport { Sticky } from \"./sticky/stickyLegacy\";\nimport { loadBookmarks, saveBookmarks } from \"./storage/workspaceState\";\nimport { Container } from \"./core/container\";\nimport { registerWhatsNew } from \"./whats-new/commands\";\nimport { codicons } from \"vscode-ext-codicons\";\nimport { appendPath, getRelativePath, parsePosition } from \"./utils/fs\";\nimport { File } from \"./core/file\";\nimport { updateDecorationsInActiveEditor, createBookmarkDecorations, TextEditorDecorationTypePair } from \"./decoration/decoration\";\nimport { pickController } from \"./quickpick/controllerPicker\";\nimport { updateStickyBookmarks } from \"./sticky/sticky\";\n\nexport async function activate(context: vscode.ExtensionContext) {\n\n    Container.context = context;\n\n    await registerWhatsNew();\n\n    let activeController: Controller;\n    let controllers: Controller[] = [];\n    let activeEditorCountLine: number;\n    let timeout = null;    \n    let activeEditor = vscode.window.activeTextEditor;\n    let activeFile: File;         \n\n    let bookmarkDecorationTypePairs = createBookmarkDecorations();\n    bookmarkDecorationTypePairs.forEach(decorator => {\n        context.subscriptions.push(decorator.gutterDecoration); \n        context.subscriptions.push(decorator.lineDecoration); \n    });\n\n    // load pre-saved bookmarks\n    await loadWorkspaceState();\n    \n    // Connect it to the Editors Events\n    if (activeEditor) {\n        getActiveController(activeEditor.document);\n        activeController.addFile(activeEditor.document.uri);\n        activeEditorCountLine = activeEditor.document.lineCount;\n        activeFile = activeController.fromUri(activeEditor.document.uri);\n        triggerUpdateDecorations();\n    }\n\n    // new docs\n    // vscode.workspace.onDidOpenTextDocument(doc => {\n    //     // activeEditorCountLine = doc.lineCount;\n    //     getActiveController(doc);\n    //     activeController.addFile(doc.uri);\n    // });\n\n    vscode.window.onDidChangeActiveTextEditor(editor => {\n        activeEditor = editor;\n        if (editor) {\n            activeEditorCountLine = editor.document.lineCount;\n            getActiveController(editor.document);\n            activeController.addFile(editor.document.uri);\n            activeFile = activeController.fromUri(editor.document.uri);\n            \n            triggerUpdateDecorations();\n        }\n    }, null, context.subscriptions);\n\n    vscode.workspace.onDidChangeTextDocument(event => {\n        if (activeEditor && event.document === activeEditor.document) {\n            let updatedBookmark = true;\n            // call sticky function when the activeEditor is changed\n            if (activeFile && activeFile.bookmarks.length > 0) {\n                if (vscode.workspace.getConfiguration(\"numberedBookmarks\").get<boolean>(\"experimental.enableNewStickyEngine\", true)) {\n                    updatedBookmark = updateStickyBookmarks(event, activeFile,\n                        activeEditor, activeController);\n                } else {\n                    updatedBookmark = Sticky.stickyBookmarks(event, activeEditorCountLine, \n                        activeFile, activeEditor);\n                }\n            }\n\n            activeEditorCountLine = event.document.lineCount;\n            updateDecorations();\n\n            if (updatedBookmark) {\n                saveWorkspaceState();\n            }\n        }\n    }, null, context.subscriptions);\n    \n    vscode.workspace.onDidChangeConfiguration(async event => {    \n        if (event.affectsConfiguration(\"numberedBookmarks.gutterIconFillColor\") \n            || event.affectsConfiguration(\"numberedBookmarks.gutterIconNumberColor\")    \n        ) {\n            if (bookmarkDecorationTypePairs.length > 0) {\n                bookmarkDecorationTypePairs.forEach(decorator => {\n                    decorator.gutterDecoration.dispose();\n                    decorator.lineDecoration.dispose();\n                });\n            }\n            bookmarkDecorationTypePairs = createBookmarkDecorations();\n            bookmarkDecorationTypePairs.forEach(decorator => {\n                context.subscriptions.push(decorator.gutterDecoration); \n                context.subscriptions.push(decorator.lineDecoration); \n            });\n            // context.subscriptions.push(...bookmarkDecorationTypePairs[0], ...bookmarkDecorationTypePairs[1]);\n        }\n    }, null, context.subscriptions);\n\n    vscode.workspace.onDidRenameFiles(async rename => {\n        \n        if (rename.files.length === 0) { return; } \n\n        for (const file of rename.files) {\n            const files = activeController.files.map(file => file.path);\n            const stat = await vscode.workspace.fs.stat(file.newUri);\n\n            const fileRelativeOldPath = getRelativePath(activeController.workspaceFolder.uri.path, file.oldUri.path);\n            const fileRelativeNewPath = getRelativePath(activeController.workspaceFolder.uri.path, file.newUri.path);\n            \n            if (stat.type === vscode.FileType.File) {\n                if (files.includes(fileRelativeOldPath)) {\n                    activeController.updateFilePath(fileRelativeOldPath, fileRelativeNewPath);\n                }\n            }\n            if (stat.type === vscode.FileType.Directory) {\n                activeController.updateDirectoryPath(fileRelativeOldPath, fileRelativeNewPath);\n            }\n        }\n\n        saveWorkspaceState();\n        if (activeEditor) {\n            activeFile = activeController.fromUri(activeEditor.document.uri);\n            updateDecorations();\n        }\n    }, null, context.subscriptions);\n\n    // Timeout\n    function triggerUpdateDecorations() {\n        if (timeout) {\n            clearTimeout(timeout);\n        }\n        timeout = setTimeout(updateDecorations, 100);\n    }\n\n    function getDecorationPair(n: number): TextEditorDecorationTypePair {\n        return bookmarkDecorationTypePairs[ n ];\n    }\n\n    // Evaluate (prepare the list) and DRAW\n    function updateDecorations() {\n        updateDecorationsInActiveEditor(activeEditor, activeFile, getDecorationPair);\n    }\n    \n    // other commands\n    for (let i = 0; i <= 9; i++) {\n        vscode.commands.registerCommand(\n            `numberedBookmarks.toggleBookmark${i}`, \n            () => toggleBookmark(i, vscode.window.activeTextEditor.selection.active)\n        );\n        vscode.commands.registerCommand(\n            `numberedBookmarks.jumpToBookmark${i}`,\n            () => jumpToBookmark(i)\n        );\n    }\n\n    vscode.commands.registerCommand(\"numberedBookmarks.clear\", () => {\n        clearBookmarks(activeFile);\n        \n        saveWorkspaceState();\n        updateDecorations();\n    });\n\n    vscode.commands.registerCommand(\"numberedBookmarks.clearFromAllFiles\", async () => {\n        \n        const controller = await pickController(controllers, activeController);\n        if (!controller) {\n            return\n        }\n\n        for (const file of controller.files) {\n            clearBookmarks(file);\n        }\n\n        saveWorkspaceState();\n        updateDecorations();\n    });\n\n    vscode.commands.registerCommand(\"numberedBookmarks.list\", () => {\n        // no bookmark\n        if (!hasBookmarks(activeFile)) {\n            vscode.window.showInformationMessage(l10n.t(\"No Bookmarks found\"));\n            return;\n        }\n\n        // push the items\n        const items: vscode.QuickPickItem[] = [];\n        for (const bookmark of activeFile.bookmarks) {\n            if (isBookmarkDefined(bookmark)) {\n                const bookmarkLine = bookmark.line + 1;\n                const bookmarkColumn = bookmark.column + 1;\n                const lineText = vscode.window.activeTextEditor.document.lineAt(bookmarkLine - 1).text.trim();\n                items.push({\n                    label: lineText,\n                    description: \"(Ln \" + bookmarkLine.toString() + \", Col \" +\n                        bookmarkColumn.toString() + \")\"\n                });\n            }\n        }\n\n        // pick one\n        const currentPosition: Position = vscode.window.activeTextEditor.selection.active;\n        const options = <vscode.QuickPickOptions> {\n            placeHolder: l10n.t(\"Type a line number or a piece of code to navigate to\"),\n            matchOnDescription: true,\n            matchOnDetail: true,\n            onDidSelectItem: item => {\n                const itemT = <vscode.QuickPickItem> item;\n                const point: Bookmark = parsePosition(itemT.description);\n                if (point) {\n                    revealPosition(point.line - 1, point.column - 1);\n                }\n            }\n        };\n\n        vscode.window.showQuickPick(items, options).then(selection => {\n            if (typeof selection === \"undefined\") {\n                revealPosition(currentPosition.line, currentPosition.character);\n                return;\n            }\n            const itemT = <vscode.QuickPickItem> selection;\n            const point: Bookmark = parsePosition(itemT.description);\n            if (point) {\n                revealPosition(point.line - 1, point.column - 1);\n            }\n        });\n    });\n    \n vscode.commands.registerCommand(\"numberedBookmarks.listFromAllFiles\", async () => {\n\n        const controller = await pickController(controllers, activeController);\n        if (!controller) {\n            return\n        }\n\n        // no bookmark\n        let someFileHasBookmark: boolean;\n        for (const file of controller.files) {\n            someFileHasBookmark = someFileHasBookmark || hasBookmarks(file);\n            if (someFileHasBookmark) break;\n        }\n        if (!someFileHasBookmark) {\n            vscode.window.showInformationMessage(l10n.t(\"No Bookmarks found\"));\n            return;\n        }\n\n        // push the items\n        const items: BookmarkQuickPickItem[] = [];\n        const activeTextEditor = vscode.window.activeTextEditor;\n        const promisses = [];\n        const currentPosition: Position = vscode.window.activeTextEditor?.selection.active;\n\n        // tslint:disable-next-line:prefer-for-of\n        for (let index = 0; index < controller.files.length; index++) {\n            const file = controller.files[ index ];\n            const pp = listBookmarks(file, controller.workspaceFolder);\n            promisses.push(pp);\n        }\n\n        Promise.all(promisses).then(\n            (values) => {\n                // tslint:disable-next-line:prefer-for-of\n                for (let index = 0; index < values.length; index++) {\n                    const element = values[ index ];\n                    // tslint:disable-next-line:prefer-for-of\n                    for (let indexInside = 0; indexInside < element.length; indexInside++) {\n                        const elementInside = element[ indexInside ];\n\n                        if (activeTextEditor && \n                            elementInside.detail.toString().toLocaleLowerCase() === getRelativePath(controller.workspaceFolder?.uri?.path, activeTextEditor.document.uri.path).toLocaleLowerCase()) {\n                            items.push(\n                                {\n                                    label: elementInside.label,\n                                    description: elementInside.description,\n                                    uri: elementInside.uri\n                                }\n                            );\n                        } else {\n                            items.push(\n                                {\n                                    label: elementInside.label,\n                                    description: elementInside.description,\n                                    detail: elementInside.detail,\n                                    uri: elementInside.uri\n                                }\n                            );\n                        }\n                    }\n\n                }\n\n                // sort\n                // - active document\n                // - no octicon - document inside project\n                // - with octicon - document outside project\n                const itemsSorted: BookmarkQuickPickItem[] = items.sort(function(a: BookmarkQuickPickItem, b: BookmarkQuickPickItem): number {\n                    if (!a.detail && !b.detail) {\n                        return 0;\n                    }\n\n                    if (!a.detail && b.detail) {\n                        return -1;\n                    }\n                    \n                    if (a.detail && !b.detail) {\n                            return 1;\n                    }\n\n                    if ((a.detail.toString().indexOf(codicons.file_submodule + \" \") === 0) && (b.detail.toString().indexOf(codicons.file_directory + \" \") === 0)) {\n                        return -1;\n                    }\n                    \n                    if ((a.detail.toString().indexOf(codicons.file_directory + \" \") === 0) && (b.detail.toString().indexOf(codicons.file_submodule + \" \") === 0)) {\n                        return 1;\n                    }\n\n                    if ((a.detail.toString().indexOf(codicons.file_submodule + \" \") === 0) && (b.detail.toString().indexOf(codicons.file_submodule + \" \") === -1)) {\n                        return 1;\n                    }\n                    \n                    if ((a.detail.toString().indexOf(codicons.file_submodule + \" \") === -1) && (b.detail.toString().indexOf(codicons.file_submodule + \" \") === 0)) {\n                        return -1;\n                    }\n                    \n                    if ((a.detail.toString().indexOf(codicons.file_directory + \" \") === 0) && (b.detail.toString().indexOf(codicons.file_directory + \" \") === -1)) {\n                        return 1;\n                    }\n                    \n                    if ((a.detail.toString().indexOf(codicons.file_directory + \" \") === -1) && (b.detail.toString().indexOf(codicons.file_directory + \" \") === 0)) {\n                        return -1;\n                    }\n                    \n                    return 0;\n                });\n\n                const options = <vscode.QuickPickOptions> {\n                    placeHolder: l10n.t(\"Type a line number or a piece of code to navigate to\"),\n                    matchOnDescription: true,\n                    onDidSelectItem: item => {\n\n                        const itemT = <BookmarkQuickPickItem> item\n\n                        let fileUri: Uri;\n                        if (!itemT.detail) {\n                            fileUri = activeTextEditor.document.uri;\n                        } else {\n                            fileUri = itemT.uri;\n                        }\n\n                        const point: Bookmark = parsePosition(itemT.description);\n                        if (vscode.window.activeTextEditor && vscode.window.activeTextEditor.document.uri.fsPath.toLowerCase() === fileUri.fsPath.toLowerCase()) {\n                            revealPosition(point.line - 1, point.column - 1);\n                        } else {\n                            previewPositionInDocument(point, fileUri);\n                        }\n                    }\n                };\n                vscode.window.showQuickPick(itemsSorted, options).then(async selection => {\n                    if (typeof selection === \"undefined\") {\n                        if (!activeTextEditor) {\n                            vscode.commands.executeCommand(\"workbench.action.closeActiveEditor\");\n                            return;\n                        } else {\n                            vscode.workspace.openTextDocument(activeTextEditor.document.uri).then(doc => {\n                                vscode.window.showTextDocument(doc).then(() => {\n                                    revealPosition(currentPosition.line, currentPosition.character)\n                                    return;\n                                });\n                            });\n                        }\n                    }\n\n                    if (typeof selection === \"undefined\") {\n                        return;\n                    }\n\n                    const point: Bookmark = parsePosition(selection.description);\n                    if (!selection.detail) {\n                        if (point) {\n                            revealPosition(point.line - 1, point.column - 1);\n                        }\n                    }\n                });\n            }\n        );\n    });\n\n    function getActiveController(document: TextDocument): void {\n        // system files don't have workspace, so use the first one [0]\n        if (!vscode.workspace.getWorkspaceFolder(document.uri)) {\n            activeController = controllers[0];\n            return;\n        }\n\n        if (controllers.length > 1) {\n            activeController = controllers.find(ctrl =>\n                ctrl.workspaceFolder.uri.path === vscode.workspace.getWorkspaceFolder(document.uri).uri.path);\n        }\n    }\n\n    async function loadWorkspaceState(): Promise<void> {\n\n        // no workspace, load as `undefined` and will always be from `workspaceState`\n        if (!vscode.workspace.workspaceFolders) {\n            const ctrl = await loadBookmarks(undefined);\n            controllers.push(ctrl);\n            activeController = ctrl;\n            return;\n        }\n\n        // NOT `saveBookmarksInProject`\n        if (!vscode.workspace.getConfiguration(\"numberedBookmarks\").get(\"saveBookmarksInProject\", false)) {\n            //if (vscode.workspace.workspaceFolders.length > 1) {\n            // no matter how many workspaceFolders exists, will always load from [0] because even with \n            // multi-root, there would be no way to load state from different folders\n            const ctrl = await loadBookmarks(vscode.workspace.workspaceFolders[0]);\n            controllers.push(ctrl);\n            activeController = ctrl;\n            return;\n        }\n\n        // `saveBookmarksInProject` TRUE\n        // single or multi-root, will load from each `workspaceFolder`\n        controllers = await Promise.all(\n            vscode.workspace.workspaceFolders!.map(async workspaceFolder => {\n                const ctrl = await loadBookmarks(workspaceFolder);\n                return ctrl;\n            })\n        );\n        if (controllers.length === 1) {\n            activeController = controllers[0];\n        }\n    }\n\n    function saveWorkspaceState(): void {\n        // no workspace, there is only one `controller`, and will always be from `workspaceState`\n        if (!vscode.workspace.workspaceFolders) {\n            saveBookmarks(activeController);\n            return;\n        }\n\n        // NOT `saveBookmarksInProject`, will load from `workspaceFolders[0]` - as before\n        if (!vscode.workspace.getConfiguration(\"numberedBookmarks\").get(\"saveBookmarksInProject\", false)) {\n            // no matter how many workspaceFolders exists, will always save to [0] because even with\n            // multi-root, there would be no way to save state to different folders\n            saveBookmarks(activeController);\n            return;\n        }\n\n        // `saveBookmarksInProject` TRUE\n        // single or multi-root, will save to each `workspaceFolder` \n        controllers.forEach(controller => {\n            saveBookmarks(controller);\n        });\n    }\n\n    function toggleBookmark(n: number, position: vscode.Position) {\n        // fix issue emptyAtLaunch\n        if (!activeFile) {\n            activeController.addFile(vscode.window.activeTextEditor.document.uri); \n            activeFile = activeController.fromUri(vscode.window.activeTextEditor.document.uri);\n        }\n\n        // there is another bookmark already set for this line?\n        const index: number = indexOfBookmark(activeFile, position.line);\n        if (index >= 0) {\n            clearBookmark(index);\n        }\n\n        // if was myself, then I want to 'remove'\n        if (index !== n) {\n            activeFile.bookmarks[ n ] = {\n                line: position.line,\n                column: position.character\n            }\n\n            // when _toggling_ only \"replace\" differs, because it has to _invalidate_ that bookmark from other files \n            const navigateThroughAllFiles: string = vscode.workspace.getConfiguration(\"numberedBookmarks\").get(\"navigateThroughAllFiles\", \"false\");\n            if (navigateThroughAllFiles === \"replace\") {\n                for (const element of activeController.files) {\n                    if (element.path !== activeFile.path) {\n                        element.bookmarks[ n ] = NO_BOOKMARK_DEFINED;\n                    }\n                }\n            }\n        }\n\n        saveWorkspaceState();\n        updateDecorations();\n    }\n\n    function clearBookmark(n: number) {\n        activeFile.bookmarks[ n ] = NO_BOOKMARK_DEFINED;\n    }\n\n    async function jumpToBookmark(n: number) {\n        if (!activeFile) {\n            return;\n        }\n\n        // when _jumping_ each config has its own behavior \n        const navigateThroughAllFiles: string = vscode.workspace.getConfiguration(\"numberedBookmarks\").get(\"navigateThroughAllFiles\", \"false\");\n        switch (navigateThroughAllFiles) {\n            case \"replace\":\n                // is it already set?\n                if (activeFile.bookmarks[ n ].line < 0) {\n\n                    // no, look for another document that contains that bookmark \n                    // I can start from the first because _there is only one_\n                    for (const element of activeController.files) {\n                        if ((element.path !== activeFile.path) && (isBookmarkDefined(element.bookmarks[ n ]))) {\n                            await revealPositionInDocument(element.bookmarks[n], activeController.getFileUri(element));\n                            return;\n                        }\n                    }\n                } else {\n                    revealPosition(activeFile.bookmarks[ n ].line, activeFile.bookmarks[ n ].column);\n                }\n\n                break;\n\n            case \"allowDuplicates\": {\n\n                // this file has, and I'm not in the line\n                if ((isBookmarkDefined(activeFile.bookmarks[ n ])) &&\n                    (activeFile.bookmarks[ n ].line !== vscode.window.activeTextEditor.selection.active.line)) {\n                    revealPosition(activeFile.bookmarks[ n ].line, activeFile.bookmarks[ n ].column);\n                    break;\n                }\n\n                // no, look for another document that contains that bookmark \n                // I CAN'T start from the first because _there can be duplicates_\n                const currentFile: number = activeController.indexFromPath(activeFile.path);\n                let found = false;\n\n                // to the end\n                for (let index = currentFile; index < activeController.files.length; index++) {\n                    const element = activeController.files[ index ];\n                    if ((!found) && (element.path !== activeFile.path) && (isBookmarkDefined(element.bookmarks[ n ]))) {\n                        found = true;\n                        const uriDocument = appendPath(activeController.workspaceFolder.uri, element.path);\n                        await revealPositionInDocument(element.bookmarks[n], uriDocument);\n                        return;\n                    }\n                }\n\n                if (!found) {\n                    for (let index = 0; index < currentFile; index++) {\n                        const element = activeController.files[ index ];\n                        if ((!found) && (element.path !== activeFile.path) && (isBookmarkDefined(element.bookmarks[ n ]))) {\n                            found = true;\n                            const uriDocument = appendPath(activeController.workspaceFolder.uri, element.path);\n                            await revealPositionInDocument(element.bookmarks[n], uriDocument);\n                            return;\n                        }\n                    }\n                    \n                    if (!found) {\n                        if (vscode.workspace.getConfiguration(\"numberedBookmarks\").get<boolean>(\"showBookmarkNotDefinedWarning\", false)) {\n                            vscode.window.showWarningMessage(l10n.t(\"The Bookmark {0} is not defined\", n));\n                        }\n                        return;\n                    }\n                }\n\n                break;\n            }\n\n            default: // \"false\"\n                // is it already set?\n                if (activeFile.bookmarks.length === 0) {\n                    vscode.window.showInformationMessage(l10n.t(\"No Bookmarks found\"));\n                    return;\n                }\n\n                if (activeFile.bookmarks[ n ].line < 0) {\n                    if (vscode.workspace.getConfiguration(\"numberedBookmarks\").get<boolean>(\"showBookmarkNotDefinedWarning\", false)) {\n                        vscode.window.showWarningMessage(l10n.t(\"The Bookmark {0} is not defined\", n));\n                    }\n                    return;\n                }\n\n                revealPosition(activeFile.bookmarks[ n ].line, activeFile.bookmarks[ n ].column);\n\n                break;\n        }\n    }\n\n}"
  },
  {
    "path": "src/quickpick/controllerPicker.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport path = require(\"path\");\nimport { l10n, QuickPickItem, window } from \"vscode\";\nimport { codicons } from \"vscode-ext-codicons\";\nimport { Controller } from \"../core/controller\";\n\ninterface ControllerQuickPickItem extends QuickPickItem {\n    controller: Controller;\n}\n\nexport async function pickController(controllers: Controller[], activeController: Controller): Promise<Controller | undefined> {\n    \n    if (controllers.length === 1) {\n        return activeController;\n    } \n\n    const items: ControllerQuickPickItem[] = controllers.map(controller => {\n        return {\n            label: codicons.root_folder + ' ' + controller.workspaceFolder.name,\n            description: path.dirname(controller.workspaceFolder.uri.path),\n            controller: controller\n        }\n    }\n    );\n\n    const selection = await window.showQuickPick(items, {\n        placeHolder: l10n.t('Select a workspace')\n    });\n\n    if (typeof selection === \"undefined\") {\n        return undefined\n    }\n\n    return selection.controller;\n}\n"
  },
  {
    "path": "src/sticky/sticky.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Castellant Guillaume & Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*\n*  Original Author: Castellant Guillaume (@Terminux), \n*                   (https://github.com/alefragnani/vscode-bookmarks/pull/20)\n*--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from \"vscode\";\nimport { NO_BOOKMARK_DEFINED } from \"../core/constants\";\nimport { Controller } from \"../core/controller\";\nimport { File } from \"../core/file\";\nimport { indexOfBookmark } from \"../core/operations\";\n\nexport function updateStickyBookmarks(event: vscode.TextDocumentChangeEvent,\n    activeBookmark: File, activeEditor: vscode.TextEditor, controller: Controller): boolean {\n\n    // no changes at all\n    if (hasNoChanges(event)) {\n        return false;\n    }\n\n    // added an empty, indented, line\n    if (isAddEmptyLineWithIndent(event, activeBookmark, activeEditor, controller)) {\n        return true;\n    }\n\n    // just a Move Line UP / Down\n    if (isMoveLineUpDown(event, activeBookmark, activeEditor, controller)) {\n        return true;\n    }\n\n    let updatedBookmark = false;\n    const keepBookmarksOnLineDelete = vscode.workspace.getConfiguration(\"numberedBookmarks\").get<boolean>(\"keepBookmarksOnLineDelete\", false);\n\n    // the NEW Sticky Engine\n    for (const contentChangeEvent of event.contentChanges) {\n        \n        // didn't DEL neither ADD lines\n        if (!isDeleteLine(contentChangeEvent) && !isAddLine(contentChangeEvent)) {\n            continue;\n        }\n\n        if (isAddLine(contentChangeEvent)) {\n            const numberOfLinesAdded = (contentChangeEvent.text.match(/\\n/g) || []).length;\n\n            for (let index = 0; index < activeBookmark.bookmarks.length; index++) {\n                const eventLine: number = contentChangeEvent.range.start.line;\n                let eventcharacter: number = contentChangeEvent.range.start.character;\n\n                // indent ?\n                if (eventcharacter > 0) {\n                    let textInEventLine = activeEditor.document.lineAt(eventLine).text;\n                    textInEventLine = textInEventLine.replace(/\\t/g, \"\").replace(/\\s/g, \"\");\n                    if (textInEventLine === \"\") {\n                        eventcharacter = 0;\n                    }\n                }\n\n                // also =\n                if (\n                    ((activeBookmark.bookmarks[ index ].line > eventLine) && (eventcharacter > 0)) ||\n                    ((activeBookmark.bookmarks[ index ].line >= eventLine) && (eventcharacter === 0))\n                ) {\n                    const newLine = activeBookmark.bookmarks[ index ].line + numberOfLinesAdded;\n                    activeBookmark.bookmarks[index].line = newLine;\n                    updatedBookmark = true;\n                }\n            }\n        }\n\n        if (isDeleteLine(contentChangeEvent)) {\n\n            // delete bookmarks INSIDE the deleted content \n            for (let i = contentChangeEvent.range.start.line; i < contentChangeEvent.range.end.line; i++) {\n                const index = indexOfBookmark(activeBookmark, i); \n\n                if (index > -1) {\n                    if (keepBookmarksOnLineDelete) {\n                        const hasBookmarkAfterDeletionBlock = indexOfBookmark(activeBookmark, contentChangeEvent.range.end.line) > -1;\n                        if (!hasBookmarkAfterDeletionBlock) {\n                            const newLine = contentChangeEvent.range.end.line;\n                            activeBookmark.bookmarks[index].line = newLine;\n                        } else {\n                            activeBookmark.bookmarks[index] = NO_BOOKMARK_DEFINED;\n                        }\n                    } else {\n                        activeBookmark.bookmarks[index] = NO_BOOKMARK_DEFINED;\n                    }\n                    updatedBookmark = true;\n                }\n            }\n\n            // move bookmarks UP\n            const numberOfLinesDeleted = contentChangeEvent.range.end.line - contentChangeEvent.range.start.line;\n            for (let index = 0; index < activeBookmark.bookmarks.length; index++) {\n                // const element = activeBookmark.bookmarks[index];\n                const eventLine: number = contentChangeEvent.range.start.line;\n                let eventcharacter: number = contentChangeEvent.range.start.character;\n\n                // indent ?\n                if (eventcharacter > 0) {\n                    let textInEventLine = activeEditor.document.lineAt(eventLine).text;\n                    textInEventLine = textInEventLine.replace(/\\t/g, \"\").replace(/\\s/g, \"\");\n                    if (textInEventLine === \"\") {\n                        eventcharacter = 0;\n                    }\n                }\n                if (\n                    ((activeBookmark.bookmarks[ index ].line > eventLine) && (eventcharacter > 0)) ||\n                    ((activeBookmark.bookmarks[ index ].line >= eventLine) && (eventcharacter === 0))\n                ) {\n                    const newLine = activeBookmark.bookmarks[ index ].line - numberOfLinesDeleted;\n                    activeBookmark.bookmarks[index].line = newLine;\n                    updatedBookmark = true;\n                }\n            }\n        }\n    }\n\n    return updatedBookmark;\n}\n\nfunction isAddLine(contentChangeEvent: vscode.TextDocumentContentChangeEvent) {\n    return contentChangeEvent.text.includes(\"\\n\");\n}\n\nfunction isDeleteLine(contentChangeEvent: vscode.TextDocumentContentChangeEvent) {\n    return /* contentChangeEvent.text === \"\" &&  */(contentChangeEvent.range.start.line < contentChangeEvent.range.end.line);\n}\n\nfunction hasNoChanges(event: vscode.TextDocumentChangeEvent) {\n    return event.contentChanges.length === 0;\n}\n\nfunction isAddEmptyLineWithIndent(event: vscode.TextDocumentChangeEvent, activeBookmark: File, activeEditor: vscode.TextEditor, controller: Controller) {\n    if (event.contentChanges.length !== 2) {\n        return false;\n    }\n\n    const firstEvent = event.contentChanges[0];\n    const firstEventIsExpectation = (firstEvent.range.start.line === firstEvent.range.end.line &&\n        firstEvent.range.start.character === firstEvent.range.end.character &&\n        firstEvent.text.match(/\\n/g).length > 0) \n    const secondEvent = event.contentChanges[1];\n    const secondEventIsExpectation = (secondEvent.range.start.line === secondEvent.range.end.line &&\n        secondEvent.range.start.character === 0 &&\n        secondEvent.range.end.character !== 0 &&\n        secondEvent.text === \"\");\n    if (firstEventIsExpectation && secondEventIsExpectation) {\n        return moveStickyBookmarks(\"up\", secondEvent.range, activeBookmark, controller);\n    } else {\n        return false;\n    }\n}\n\nfunction isMoveLineUpDown(event: vscode.TextDocumentChangeEvent, activeBookmark: File, activeEditor: vscode.TextEditor, controller: Controller) {\n    \n    // move line up and move line down \n    const moveChanges = event.contentChanges.filter(c => !(c.range.start.line === c.range.end.line && /^[\\t ]*$/.test(c.text)));\n    if (moveChanges.length === 2) {\n        \n        let updatedBookmark = false;\n\n        // move line up and move line down case\n        if (activeEditor.selections.length === 1) {\n            if (moveChanges[ 0 ].text === \"\") {\n                updatedBookmark = moveStickyBookmarks(\"down\", moveChanges[ 1 ].range, activeBookmark, controller);\n            } else if (moveChanges[ 1 ].text === \"\") {\n                updatedBookmark = moveStickyBookmarks(\"up\", moveChanges[ 0 ].range, activeBookmark, controller);\n            }\n        }\n        return updatedBookmark;\n    } \n\n    // not that stable yet\n    // if (event.contentChanges.length > 1 && moveChanges.length === 1) {\n    //     let updatedBookmark = false;\n    //     if (activeEditor.selections.length === 1) {\n    //         if (moveChanges[ 0 ].range.start.line === activeEditor.selections[0].start.line) {\n    //             updatedBookmark = moveStickyBookmarks(\"up\", moveChanges[ 0 ].range, activeBookmark, activeEditor, controller);\n    //         } else {\n    //             updatedBookmark = moveStickyBookmarks(\"down\", moveChanges[ 0 ].range, activeBookmark, activeEditor, controller);\n    //         }\n    //     }\n    //     return updatedBookmark;\n    // }\n    \n    return false;\n}\n\nfunction moveStickyBookmarks(direction: string, range: vscode.Range, activeBookmark: File, controller: Controller): boolean {\n    let diffChange = -1;\n    let updatedBookmark = false;\n    let diffLine;\n    const selection = range;//activeEditor.selection;\n    let lineRange = [ selection.start.line, selection.end.line ];\n    const lineMin = Math.min.apply(this, lineRange);\n    let lineMax = Math.max.apply(this, lineRange);\n\n    if (selection.end.character === 0 && !selection.isSingleLine) {\n        // const lineAt = activeEditor.document.lineAt(selection.end.line);\n        // const posMin = new vscode.Position(selection.start.line + 1, selection.start.character);\n        // const posMax = new vscode.Position(selection.end.line, lineAt.range.end.character);\n        // vscode.window.activeTextEditor.selection = new vscode.Selection(posMin, posMax);\n        lineMax--;\n    }\n\n    let indexRemoved: number;\n    if (direction === \"up\") {\n        diffLine = 1;\n\n        indexRemoved = indexOfBookmark(activeBookmark, lineMin - 1);\n        if (indexRemoved > -1) {\n            diffChange = lineMax;\n            activeBookmark.bookmarks[ indexRemoved ] = NO_BOOKMARK_DEFINED;\n            updatedBookmark = true;\n        }\n    } else if (direction === \"down\") {\n        diffLine = -1;\n\n        indexRemoved = indexOfBookmark(activeBookmark, lineMax + 1);\n        if (indexRemoved > -1) {\n            diffChange = lineMin;\n            activeBookmark.bookmarks[ indexRemoved ] = NO_BOOKMARK_DEFINED;\n            updatedBookmark = true;\n        }\n    }\n\n    lineRange = [];\n    for (let i = lineMin; i <= lineMax; i++) {\n        lineRange.push(i);\n    }\n    lineRange = lineRange.sort();\n    if (diffLine < 0) {\n        lineRange = lineRange.reverse();\n    }\n\n    // tslint:disable-next-line: forin\n    for (const i in lineRange) {\n        const index = indexOfBookmark(activeBookmark, lineRange[ i ]);\n        if (index > -1) {\n            activeBookmark.bookmarks[ index ].line -= diffLine;\n            updatedBookmark = true;\n        }\n    }\n\n    if (diffChange > -1 && indexRemoved)  {\n        activeBookmark.bookmarks[ indexRemoved ] = {line: diffChange, column: 0};\n        updatedBookmark = true;\n    }\n\n    return updatedBookmark;\n}\n"
  },
  {
    "path": "src/sticky/stickyLegacy.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Castellant Guillaume & Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*\n*  Original Author: Castellant Guillaume (@Terminux), \n*                   (https://github.com/alefragnani/vscode-bookmarks/pull/20)\n*--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from \"vscode\";\nimport { File } from \"../core/file\";\nimport { NO_BOOKMARK_DEFINED } from \"../core/constants\";\nimport { indexOfBookmark } from \"../core/operations\";\n\nexport class Sticky {\n    \n    public static stickyBookmarks(event: vscode.TextDocumentChangeEvent, activeEditorCountLine: number, activeBookmark: File, activeEditor: vscode.TextEditor): boolean {\n\n        let diffLine: number;\n        let updatedBookmark = false;\n\n        // fix autoTrimWhitespace\n        // if (event.contentChanges.length === 1) {\n        if (this.hadOnlyOneValidContentChange(event)) {\n            // add or delete line case\n            if (event.document.lineCount !== activeEditorCountLine) {\n                if (event.document.lineCount > activeEditorCountLine) {\n                    diffLine = event.document.lineCount - activeEditorCountLine;\n                } else if (event.document.lineCount < activeEditorCountLine) {\n                    diffLine = activeEditorCountLine - event.document.lineCount;\n                    diffLine = 0 - diffLine;\n\n                    // one line up\n                    if (event.contentChanges[ 0 ].range.end.line - event.contentChanges[ 0 ].range.start.line === 1) {\n\n                        if ((event.contentChanges[ 0 ].range.end.character === 0) &&\n                            (event.contentChanges[ 0 ].range.start.character === 0)) {\n                            // the bookmarked one\n                            const idxbk = indexOfBookmark(activeBookmark, event.contentChanges[ 0 ].range.start.line);\n                            // const idxbk = activeBookmark.bookmarks.indexOf(event.contentChanges[ 0 ].range.start.line);\n                            if (idxbk > -1) {\n                                activeBookmark.bookmarks[ idxbk ] = NO_BOOKMARK_DEFINED;\n                            }\n                        }\n                    }\n\n                    if (event.contentChanges[ 0 ].range.end.line - event.contentChanges[ 0 ].range.start.line > 1) {\n                        for (let i = event.contentChanges[ 0 ].range.start.line/* + 1*/; i <= event.contentChanges[ 0 ].range.end.line; i++) {\n                            const index = indexOfBookmark(activeBookmark, i);\n                            // const index = activeBookmark.bookmarks.indexOf(i);\n\n                            if (index > -1) {\n                                activeBookmark.bookmarks[ index ] = NO_BOOKMARK_DEFINED;\n                                updatedBookmark = true;\n                            }\n                        }\n                    }\n                }\n\n                // for (let index in activeBookmark.bookmarks) {\n                for (let index = 0; index < activeBookmark.bookmarks.length; index++) {\n                    const eventLine = event.contentChanges[ 0 ].range.start.line;\n                    let eventcharacter = event.contentChanges[ 0 ].range.start.character;\n\n                    // indent ?\n                    if (eventcharacter > 0) {\n                        let textInEventLine = activeEditor.document.lineAt(eventLine).text;\n                        textInEventLine = textInEventLine.replace(/\\t/g, \"\").replace(/\\s/g, \"\");\n                        if (textInEventLine === \"\") {\n                            eventcharacter = 0;\n                        }\n                    }\n\n                    // also =\n                    if (\n                        ((activeBookmark.bookmarks[ index ].line > eventLine) && (eventcharacter > 0)) ||\n                        ((activeBookmark.bookmarks[ index ].line >= eventLine) && (eventcharacter === 0))\n                    ) {\n                        let newLine = activeBookmark.bookmarks[ index ].line + diffLine;\n                        if (newLine < 0) {\n                            newLine = 0;\n                        }\n\n                        activeBookmark.bookmarks[ index ].line = newLine;\n                        updatedBookmark = true;\n                    }\n                }\n            }\n\n            // paste case\n            if (!updatedBookmark && (event.contentChanges[ 0 ].text.length > 1)) {\n                const selection = vscode.window.activeTextEditor.selection;\n                const lineRange = [ selection.start.line, selection.end.line ];\n                let lineMin = Math.min.apply(this, lineRange);\n                let lineMax = Math.max.apply(this, lineRange);\n\n                if (selection.start.character > 0) {\n                    lineMin++;\n                }\n\n                if (selection.end.character < vscode.window.activeTextEditor.document.lineAt(selection.end).range.end.character) {\n                    lineMax--;\n                }\n\n                if (lineMin <= lineMax) {\n                    for (let i = lineMin; i <= lineMax; i++) {\n                        const index = activeBookmark.bookmarks.indexOf(i);\n                        if (index > -1) {\n                            activeBookmark.bookmarks[ index ] = NO_BOOKMARK_DEFINED;\n                            updatedBookmark = true;\n                        }\n                    }\n                }\n            }\n        } else if (event.contentChanges.length === 2) {\n            // move line up and move line down case\n            if (activeEditor.selections.length === 1) {\n                if (event.contentChanges[ 0 ].text === \"\") {\n                    updatedBookmark = this.moveStickyBookmarks(\"down\", activeBookmark, activeEditor);\n                } else if (event.contentChanges[ 1 ].text === \"\") {\n                    updatedBookmark = this.moveStickyBookmarks(\"up\", activeBookmark, activeEditor);\n                }\n            }\n        }\n\n        return updatedBookmark;\n    }\n    \n    private static moveStickyBookmarks(direction: string, activeBookmark: File, activeEditor: vscode.TextEditor): boolean {\n        let diffChange = -1;\n        let updatedBookmark = false;\n        let diffLine;\n        const selection = activeEditor.selection;\n        let lineRange = [ selection.start.line, selection.end.line ];\n        const lineMin = Math.min.apply(this, lineRange);\n        let lineMax = Math.max.apply(this, lineRange);\n\n        if (selection.end.character === 0 && !selection.isSingleLine) {\n            // const lineAt = activeEditor.document.lineAt(selection.end.line);\n            // const posMin = new vscode.Position(selection.start.line + 1, selection.start.character);\n            // const posMax = new vscode.Position(selection.end.line, lineAt.range.end.character);\n            // vscode.window.activeTextEditor.selection = new vscode.Selection(posMin, posMax);\n            lineMax--;\n        }\n\n        if (direction === \"up\") {\n            diffLine = 1;\n\n            const index = indexOfBookmark(activeBookmark, lineMin - 1);\n            // const index = activeBookmark.bookmarks.indexOf(lineMin - 1);\n            if (index > -1) {\n                diffChange = lineMax;\n                activeBookmark.bookmarks[ index ] = NO_BOOKMARK_DEFINED;\n                updatedBookmark = true;\n            }\n        } else if (direction === \"down\") {\n            diffLine = -1;\n\n            const index = activeBookmark.bookmarks.indexOf(lineMax + 1);\n            if (index > -1) {\n                diffChange = lineMin;\n                activeBookmark.bookmarks[ index ] = NO_BOOKMARK_DEFINED;\n                updatedBookmark = true;\n            }\n        }\n\n        lineRange = [];\n        for (let i = lineMin; i <= lineMax; i++) {\n            lineRange.push(i);\n        }\n        lineRange = lineRange.sort();\n        if (diffLine < 0) {\n            lineRange = lineRange.reverse();\n        }\n\n// tslint:disable-next-line: forin\n        for (const i in lineRange) {\n            const index = indexOfBookmark(activeBookmark, lineRange[ i ]);\n            // const index = activeBookmark.bookmarks.indexOf(lineRange[ i ]);\n            if (index > -1) {\n                activeBookmark.bookmarks[ index ].line -= diffLine;\n                updatedBookmark = true;\n            }\n        }\n\n        if (diffChange > -1) {\n            //?? activeBookmark.bookmarks.push(diffChange);\n            activeBookmark.bookmarks.push({line: diffChange, column: 0});\n            updatedBookmark = true;\n        }\n\n        return updatedBookmark;\n    }\n    \n    private static hadOnlyOneValidContentChange(event: vscode.TextDocumentChangeEvent): boolean {\n\n        // not valid\n        if ((event.contentChanges.length > 2) || (event.contentChanges.length === 0)) {\n            return false;\n        }\n\n        // normal behavior - only 1\n        if (event.contentChanges.length === 1) {\n            return true;\n        } else { // has 2, but is it a trimAutoWhitespace issue?\n            if (event.contentChanges.length === 2) {\n                const trimAutoWhitespace: boolean = vscode.workspace.getConfiguration(\"editor\").get(\"trimAutoWhitespace\", true);\n                if (!trimAutoWhitespace) {\n                    return false;\n                }\n\n                // check if the first range is 'equal' and if the second is 'empty'\n                let fistRangeEquals: boolean =\n                    (event.contentChanges[ 0 ].range.start.character === event.contentChanges[ 0 ].range.end.character) &&\n                    (event.contentChanges[ 0 ].range.start.line === event.contentChanges[ 0 ].range.end.line);\n\n                let secondRangeEmpty: boolean = (event.contentChanges[ 1 ].text === \"\") &&\n                    (event.contentChanges[ 1 ].range.start.line === event.contentChanges[ 1 ].range.end.line) &&\n                    (event.contentChanges[ 1 ].range.start.character === 0) &&\n                    (event.contentChanges[ 1 ].range.end.character > 0);\n\n                if (fistRangeEquals && secondRangeEmpty) {\n                    return true;\n                } else {\n                    fistRangeEquals =\n                        (event.contentChanges[ 0 ].rangeLength > 0) &&\n                        (event.contentChanges[ 0 ].text === \"\");\n                    secondRangeEmpty =\n                        (event.contentChanges[ 1 ].rangeLength === 0) &&\n                        (event.contentChanges[ 1 ].text === \"\\r\\n\");\n\n                    return fistRangeEquals && secondRangeEmpty;\n                }\n            }\n        }\n    }\n    \n}\n"
  },
  {
    "path": "src/storage/workspaceState.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { workspace, window, WorkspaceFolder, l10n } from \"vscode\";\nimport { Container } from \"../core/container\";\nimport { Controller } from \"../core/controller\";\nimport { appendPath, createDirectoryUri, readFileUri, uriExists, writeFileUri } from \"../utils/fs\";\n\nexport function canSaveBookmarksInProject(): boolean {\n    let saveBookmarksInProject: boolean = workspace.getConfiguration(\"numberedBookmarks\").get(\"saveBookmarksInProject\", false);\n    \n    // really use saveBookmarksInProject\n    // 0. has at least a folder opened\n    // 1. is a valid workspace/folder\n    // 2. has only one workspaceFolder\n    // let hasBookmarksFile: boolean = false;\n    if (saveBookmarksInProject && !workspace.workspaceFolders) {\n        saveBookmarksInProject = false;\n    }\n\n    return saveBookmarksInProject;\n}\n\nexport async function loadBookmarks(workspaceFolder: WorkspaceFolder): Promise<Controller> {\n    const saveBookmarksInProject: boolean = canSaveBookmarksInProject();\n\n    const newController = new Controller(workspaceFolder);\n\n    if (saveBookmarksInProject) {\n        const bookmarksFileInProject = appendPath(appendPath(workspaceFolder.uri, \".vscode\"), \"numbered-bookmarks.json\");\n        if (! await uriExists(bookmarksFileInProject)) {\n            return newController;\n        }\n        \n        try {\n            const contents = await readFileUri(bookmarksFileInProject);\n            newController.loadFrom(contents, true);\n            return newController;\n        } catch (error) {\n            window.showErrorMessage(l10n.t(\"Error loading Numbered Bookmarks: {0}\", error.toString()));\n            return newController;\n        }\n    } else {\n        const savedBookmarks = Container.context.workspaceState.get(\"numberedBookmarks\", \"\");\n        if (savedBookmarks !== \"\") {\n            newController.loadFrom(JSON.parse(savedBookmarks));\n        }\n        return newController;\n    }\n}    \n\nexport function saveBookmarks(controller: Controller): void {\n    const saveBookmarksInProject: boolean = canSaveBookmarksInProject();\n\n    if (saveBookmarksInProject) {\n        const bookmarksFileInProject = appendPath(appendPath(controller.workspaceFolder.uri, \".vscode\"), \"numbered-bookmarks.json\");\n        if (!uriExists(appendPath(controller.workspaceFolder.uri, \".vscode\"))) {\n            createDirectoryUri(appendPath(controller.workspaceFolder.uri, \".vscode\"));\n        }\n        writeFileUri(bookmarksFileInProject, JSON.stringify(controller.zip(), null, \"\\t\"));\n    } else {\n        Container.context.workspaceState.update(\"numberedBookmarks\", JSON.stringify(controller.zip()));\n    }\n}\n"
  },
  {
    "path": "src/test/runTest.ts",
    "content": "import * as path from 'path';\n\nimport { runTests } from '@vscode/test-electron';\n\nasync function main() {\n\ttry {\n\t\t// The folder containing the Extension Manifest package.json\n\t\t// Passed to `--extensionDevelopmentPath`\n\t\tconst extensionDevelopmentPath = path.resolve(__dirname, '../../../');\n\n\t\t// The path to test runner\n\t\t// Passed to --extensionTestsPath\n\t\tconst extensionTestsPath = path.resolve(__dirname, './suite/index');\n\n\t\t// Download VS Code, unzip it and run the integration test\n\t\tawait runTests({ extensionDevelopmentPath, extensionTestsPath });\n\t} catch (err) {\n\t\tconsole.error(err);\n\t\tconsole.error('Failed to run tests');\n\t\tprocess.exit(1);\n\t}\n}\n\nmain();\n"
  },
  {
    "path": "src/test/suite/extension.test.ts",
    "content": "import * as assert from 'assert';\n\n// You can import and use all API from the 'vscode' module\n// as well as import your extension to test it\nimport * as vscode from 'vscode';\n\nconst timeout = async (ms = 200) => new Promise(resolve => setTimeout(resolve, ms));\n\nsuite('Extension Test Suite', () => {\n\tlet extension: vscode.Extension<any>;\n\tvscode.window.showInformationMessage('Start all tests.');\n\n\tsuiteSetup(() => {\n\t\textension = vscode.extensions.getExtension('alefragnani.numbered-bookmarks') as vscode.Extension<any>;\n\t});\n\n\ttest('Sample test', () => {\n\t\tassert.equal(-1, [1, 2, 3].indexOf(5));\n\t\tassert.equal(-1, [1, 2, 3].indexOf(0));\n\t});\n\n\ttest('Activation test', async () => {\n\t\tawait extension.activate();\n\t\tassert.equal(extension.isActive, true);\n\t});\n\n\ttest('Extension loads in VSCode and is active', async () => {\n\t\tawait timeout(1500);\n\t\tassert.equal(extension.isActive, true);\n    });\n});\n"
  },
  {
    "path": "src/test/suite/index.ts",
    "content": "import * as path from 'path';\nimport * as Mocha from 'mocha';\nimport * as glob from 'glob';\n\nexport function run(): Promise<void> {\n\t// Create the mocha test\n\tconst mocha = new Mocha({\n\t\tui: 'tdd',\n\t\tcolor: true\n\t});\n\n\tconst testsRoot = path.resolve(__dirname, '..');\n\n\treturn new Promise((c, e) => {\n\t\tglob('**/**.test.js', { cwd: testsRoot }, (err, files) => {\n\t\t\tif (err) {\n\t\t\t\treturn e(err);\n\t\t\t}\n\n\t\t\t// Add files to the test suite\n\t\t\tfiles.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));\n\n\t\t\ttry {\n\t\t\t\t// Run the mocha test\n\t\t\t\tmocha.run(failures => {\n\t\t\t\t\tif (failures > 0) {\n\t\t\t\t\t\te(new Error(`${failures} tests failed.`));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tc();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error(err);\n\t\t\t\te(err);\n\t\t\t}\n\t\t});\n\t});\n}\n"
  },
  {
    "path": "src/utils/fs.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport os = require(\"os\");\nimport path = require(\"path\");\nimport { Uri, workspace, WorkspaceFolder } from \"vscode\";\nimport { Bookmark } from \"../core/bookmark\";\nimport { UNTITLED_SCHEME } from \"../core/constants\";\nimport { File } from \"../core/file\";\n\nexport function getRelativePath(folder: string, filePath: string) {\n    if (!folder) {\n        return filePath;\n    }\n    \n    let relativePath = path.relative(folder, filePath);\n\n    // multiplatform\n    if (os.platform() === \"win32\") {\n        relativePath = relativePath.replace(/\\\\/g, \"/\");\n    }\n\n    return relativePath;\n}\n\nexport function appendPath(uri: Uri, pathSuffix: string): Uri {\n    const pathPrefix = uri.path.endsWith(\"/\") ? uri.path : `${uri.path}/`;\n    const filePath = `${pathPrefix}${pathSuffix}`;\n\n    return uri.with({\n        path: filePath\n    });\n}\n\nexport function uriJoin(uri: Uri, ...paths: string[]): string {\n    return path.join(uri.fsPath, ...paths);\n}\n\nexport function uriWith(uri: Uri, prefix: string, filePath: string): Uri {\n    const newPrefix = prefix === \"/\" \n        ? \"\"\n        : prefix;\n\n    return uri.with({\n        path: `${newPrefix}/${filePath}`\n    });\n}\n\nexport async function uriExists(uri: Uri): Promise<boolean> {\n\n    if (uri.scheme === UNTITLED_SCHEME) {\n        return true;\n    }\n    \n    try {\n        await workspace.fs.stat(uri);\n        return true;\n    } catch {\n        return false;\n    }\n}\n\nexport async function uriDelete(uri: Uri): Promise<boolean> {\n\n    if (uri.scheme === UNTITLED_SCHEME) {\n        return true;\n    }\n    \n    try {\n        await workspace.fs.delete(uri);\n        return true;\n    } catch {\n        return false;\n    }\n}\n\nexport async function fileExists(filePath: string): Promise<boolean> {\n    try {\n        await workspace.fs.stat(Uri.parse(filePath));\n        return true;\n    } catch {\n        return false;\n    }\n}\n\nexport async function createDirectoryUri(uri: Uri): Promise<void> {\n    return workspace.fs.createDirectory(uri);\n}\n\nexport async function createDirectory(dir: string): Promise<void> {\n    return workspace.fs.createDirectory(Uri.parse(dir));\n}\n\nexport async function readFile(filePath: string): Promise<string> {\n    const bytes = await workspace.fs.readFile(Uri.parse(filePath));\n    return JSON.parse(new TextDecoder('utf-8').decode(bytes));\n}\n\nexport async function readFileUri(uri: Uri): Promise<string> {\n    const bytes = await workspace.fs.readFile(uri);\n    return JSON.parse(new TextDecoder('utf-8').decode(bytes));\n}\n\nexport async function readRAWFileUri(uri: Uri): Promise<string> {\n    const bytes = await workspace.fs.readFile(uri);\n    return new TextDecoder('utf-8').decode(bytes);\n}\n\nexport async function writeFile(filePath: string, contents: string): Promise<void> {\n    const writeData = new TextEncoder().encode(contents);\n    await workspace.fs.writeFile(Uri.parse(filePath), writeData);\n}\n\nexport async function writeFileUri(uri: Uri, contents: string): Promise<void> {\n    const writeData = new TextEncoder().encode(contents);\n    await workspace.fs.writeFile(uri, writeData);\n}\n\nexport function parsePosition(position: string): Bookmark | undefined {\n    const re = new RegExp(/\\(Ln\\s(\\d+),\\sCol\\s(\\d+)\\)/);\n    const matches = re.exec(position);\n    if (matches) {\n        return {\n            line: parseInt(matches[ 1 ], 10),\n            column: parseInt(matches[ 2 ], 10)\n        };\n    }\n    return undefined;\n}\n\nexport function getFileUri(file: File, workspaceFolder: WorkspaceFolder): Uri {\n    if (file.uri) {\n        return file.uri;\n    }\n\n    if (!workspaceFolder) {\n        return Uri.file(file.path);\n    }\n\n    const prefix = workspaceFolder.uri.path.endsWith(\"/\")\n        ? workspaceFolder.uri.path\n        : `${workspaceFolder.uri.path}/`;\n    return uriWith(workspaceFolder.uri, prefix, file.path);\n}\n"
  },
  {
    "path": "src/utils/reveal.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { Selection, Tab, TabInputText, TextEditorRevealType, Uri, ViewColumn, window, workspace } from \"vscode\";\nimport { Bookmark } from \"../core/bookmark\";\nimport { getRevealLocationConfig } from \"./revealLocation\";\n\nexport function revealLine(line: number, directJump?: boolean) {\n    const newSe = new Selection(line, 0, line, 0);\n    window.activeTextEditor.selection = newSe;\n    window.activeTextEditor.revealRange(newSe, getRevealLocationConfig(directJump));\n}\n\nexport function revealPosition(line: number, column: number): void {\n    if (isNaN(column)) {\n        revealLine(line);\n    } else {\n        const revealType: TextEditorRevealType = getRevealLocationConfig(line === window.activeTextEditor.selection.active.line);\n        const newPosition = new Selection(line, column, line, column);\n        window.activeTextEditor.selection = newPosition;\n        window.activeTextEditor.revealRange(newPosition, revealType);\n    }\n}\n\nexport async function previewPositionInDocument(point: Bookmark, uri: Uri): Promise<void> {\n    const textDocument = await workspace.openTextDocument(uri);\n    await window.showTextDocument(textDocument, { preserveFocus: true, preview: true } );\n    revealPosition(point.line - 1, point.column - 1);\n}\n\nexport async function revealPositionInDocument(point: Bookmark, uri: Uri): Promise<void> {\n    const tabGroupColumn = findTabGroupColumn(uri, window.activeTextEditor.viewColumn);\n\n    const textDocument = await workspace.openTextDocument(uri);\n    await window.showTextDocument(textDocument, tabGroupColumn, false);\n    revealPosition(point.line, point.column);\n}\n\nfunction findTabGroupColumn(uri: Uri, column: ViewColumn): ViewColumn {\n        if (window.tabGroups.all.length === 1) {\n            return column;\n        }\n\n        for (const tab of window.tabGroups.activeTabGroup.tabs) {\n            if (isTabOfUri(tab, uri)) {\n                return tab.group.viewColumn;\n            }\n        }\n\n        for (const tabGroup of window.tabGroups.all) {\n            if (tabGroup.viewColumn === column) \n                continue;\n            \n            for (const tab of tabGroup.tabs) {\n                if (isTabOfUri(tab, uri)) {\n                    return tab.group.viewColumn;\n                }\n            }\n        }\n\n        return column;\n    }\n\n    function isTabOfUri(tab: Tab, uri: Uri): boolean {\n        return tab.input instanceof TabInputText &&\n                tab.input.uri.fsPath.toLocaleLowerCase() === uri.fsPath.toLocaleLowerCase()\n    }\n"
  },
  {
    "path": "src/utils/revealLocation.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { TextEditorRevealType, workspace } from \"vscode\";\n\nexport enum RevealLocation {\n    Top = \"top\",\n    Center = \"center\"\n}\n\nexport function getRevealLocationConfig(ifOutsideViewport: boolean): TextEditorRevealType {\n    const configuration = workspace.getConfiguration(\"numberedBookmarks\");\n    const revealLocation = configuration.get<RevealLocation>(\"revealLocation\", RevealLocation.Center);\n\n    return revealLocation === RevealLocation.Top ?\n        TextEditorRevealType.AtTop :\n        ifOutsideViewport ?\n            TextEditorRevealType.InCenterIfOutsideViewport :\n            TextEditorRevealType.InCenter;\n}\n"
  },
  {
    "path": "src/whats-new/commands.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { commands } from \"vscode\";\nimport { Container } from \"../core/container\";\nimport { WhatsNewManager } from \"../../vscode-whats-new/src/Manager\";\nimport { NumberedBookmarksContentProvider, NumberedBookmarksSocialMediaProvider } from \"./contentProvider\";\n\nexport async function registerWhatsNew() {\n    const provider = new NumberedBookmarksContentProvider();\n    const viewer = new WhatsNewManager(Container.context)\n        .registerContentProvider(\"alefragnani\", \"numbered-bookmarks\", provider)\n        .registerSocialMediaProvider(new NumberedBookmarksSocialMediaProvider());\n    await viewer.showPageInActivation();\n    Container.context.subscriptions.push(commands.registerCommand(\"numberedBookmarks.whatsNew\", () => viewer.showPage()));\n    Container.context.subscriptions.push(commands.registerCommand(\"numberedBookmarks.whatsNewContextMenu\", () => viewer.showPage()));\n}\n"
  },
  {
    "path": "src/whats-new/contentProvider.ts",
    "content": "/*---------------------------------------------------------------------------------------------\n*  Copyright (c) Alessandro Fragnani. All rights reserved.\n*  Licensed under the GPLv3 License. See License.md in the project root for license information.\n*--------------------------------------------------------------------------------------------*/\n\nimport { ChangeLogItem, ChangeLogKind, ContentProvider, Header, Image, Sponsor, IssueKind, SupportChannel, SocialMediaProvider } from \"../../vscode-whats-new/src/ContentProvider\";\n\nexport class NumberedBookmarksContentProvider implements ContentProvider {\n    public provideHeader(logoUrl: string): Header {\n        return <Header> {logo: <Image> {src: logoUrl, height: 50, width: 50}, \n            message: `<b>Numbered Bookmarks</b> helps you to navigate in your code, <b>moving</b> \n            between important positions easily and quickly. No more need \n            to <i>search for code</i>. All of this in <b><i>Delphi style</i></b>`};\n    }\n\n    public provideChangeLog(): ChangeLogItem[] {\n        const changeLog: ChangeLogItem[] = [];\n\n        changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: \"9.0.0\", releaseDate: \"November 2025\" } });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"Fully Open Source again\",\n                id: 131,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.FIXED,\n            detail: {\n                message: \"Reuse opened file\",\n                id: 180,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: word-wrap\",\n                id: 167,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: webpack\",\n                id: 178,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: serialize-javascript\",\n                id: 183,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: braces\",\n                id: 176,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n\n        changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: \"8.5.0\", releaseDate: \"March 2024\" } });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"Published to Open VSX\",\n                id: 147,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"New setting to choose viewport position on navigation\",\n                id: 141,\n                kind: IssueKind.Issue\n            }\n        });\n\n        changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: \"8.4.0\", releaseDate: \"June 2023\" } });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"Add <b>Getting Started/Walkthrough</b> support\",\n                id: 117,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"Add <b>Localization (l10n)</b> support\",\n                id: 151,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.CHANGED,\n            detail: {\n                message: \"Avoid What's New when using Gitpod\",\n                id: 168,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.CHANGED,\n            detail: {\n                message: \"Avoid What's New when installing lower versions\",\n                id: 168,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.FIXED,\n            detail: {\n                message: \"Repeated gutter icon on line wrap\",\n                id: 149,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Improve Startup speed\",\n                id: 145,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: webpack\",\n                id: 156,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: {\n                message: \"Security Alert: terser\",\n                id: 143,\n                kind: IssueKind.PR,\n                kudos: \"dependabot\"\n            }\n        });\n\n\n        changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: \"8.3.1\", releaseDate: \"June 2022\" } });\n        changeLog.push({\n            kind: ChangeLogKind.INTERNAL,\n            detail: \"Add <b>GitHub Sponsors</b> support\"\n        });\n\n        changeLog.push({ kind: ChangeLogKind.VERSION, detail: { releaseNumber: \"8.3.0\", releaseDate: \"April 2022\" } });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"New setting to decide if should delete bookmark if associated line is deleted\",\n                id: 27,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.NEW,\n            detail: {\n                message: \"Update bookmark reference on file renames\",\n                id: 120,\n                kind: IssueKind.Issue\n            }\n        });\n        changeLog.push({\n            kind: ChangeLogKind.CHANGED,\n            detail: {\n                message: \"Replace custom icons with <i>on the fly</i> approach\",\n                id: 129,\n                kind: IssueKind.Issue\n            }\n        });\n\n        return changeLog;\n    }\n\n    public provideSupportChannels(): SupportChannel[] {\n        const supportChannels: SupportChannel[] = [];\n        supportChannels.push({\n            title: \"Become a sponsor on GitHub\",\n            link: \"https://github.com/sponsors/alefragnani\",\n            message: \"Become a Sponsor\"\n        });\n        supportChannels.push({\n            title: \"Donate via PayPal\",\n            link: \"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted\",\n            message: \"Donate via PayPal\"\n        });\n        return supportChannels;\n    }\n}\n\nexport class NumberedBookmarksSocialMediaProvider implements SocialMediaProvider {\n    public provideSocialMedias() {\n        return [{\n            title: \"Follow me on Twitter\",\n            link: \"https://www.twitter.com/alefragnani\"\n        }];\n    }\n}"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n\t\"compilerOptions\": {\n\t\t\"module\": \"commonjs\",\n\t\t\"target\": \"ES2020\",\n\t\t\"outDir\": \"out\",\n\t\t\"lib\": [\n            \"ES2020\", \"DOM\"\n        ],\n\t\t\"sourceMap\": true,\n\t\t\"rootDir\": \".\",\n\t\t\"alwaysStrict\": true\n\t},\n\t\"exclude\": [\n\t\t\"node_modules\",\n        \".vscode-test\"\n\t]\n}"
  },
  {
    "path": "walkthrough/customizingAppearance.md",
    "content": "## Customizing Appearance\n\nYou can customize not only how the icon is show in the Gutter, but also add a background color to the bookmarked line and the overview ruller.\n\nSomething like this in your settings:\n\n```json\n    \"numberedBookmarks.gutterIconFillColor\": \"#00FF0077\",\n    // \"numberedBookmarks.gutterIconNumberColor\": \"157EFB\",\n    \"workbench.colorCustomizations\": {\n      ...\n      \"numberedBookmarks.lineBackground\": \"#0077ff2a\",\n      \"numberedBookmarks.lineBorder\": \"#FF0000\", \n      \"numberedBookmarks.overviewRuler\": \"#157EFB88\"  \n    }\n```\n\nCould end up with a numbered bookmark like this:\n\n![Customized Numbered Bookmark](customizedNumberedBookmark.png)"
  },
  {
    "path": "walkthrough/customizingAppearance.nls.pt-br.md",
    "content": "## Personalizando a Aparência\n\nVocê pode personalizar não apenas como o ícone é apresentado na Medianiz, mas também adicionar cor de fundo a linha com bookmark e a régua de visão geral.\n\nAlgo como isso nas suas configuráções:\n\n```json\n    \"numberedBookmarks.gutterIconFillColor\": \"#00FF0077\",\n    // \"numberedBookmarks.gutterIconNumberColor\": \"157EFB\",\n    \"workbench.colorCustomizations\": {\n      ...\n      \"numberedBookmarks.lineBackground\": \"#0077ff2a\",\n      \"numberedBookmarks.lineBorder\": \"#FF0000\", \n      \"numberedBookmarks.overviewRuler\": \"#157EFB88\"  \n    }\n```\n\nPode deixar seus bookmarks assim:\n\n![Numbered Bookmark Personalizado](customizedNumberedBookmark.png)"
  },
  {
    "path": "walkthrough/inspiredInDelphiButOpenToOthers.md",
    "content": "## Inpired in Delphi, but open to others\n\nThe extension was inspired in Delphi, because I was a Delphi developer for a long time, and love it's bookmarks. But it supports different editors as well.\n\nTo change a bit how the extension works (toggling and navigation), simply play with the `numberedBookmarks.navigateThroughAllFiles` setting:\n\nValue | Explanation\n--------- | ---------\n`false` | _default_ - same behavior as today\n`replace` | you can't have the same numbered bookmark in different files\n`allowDuplicates` | you can have the same numbered bookmark in different files, and if you jump repeatedly to the same number, it will look on other files.\n\n### IntelliJ / UltraEdit developers\n\nIf you are an **IntelliJ** or **UltraEdit** user, you will notice the numbered bookmarks works a bit different from the default behavior. \n\nTo make **Numbered Bookmarks** works the same way as these other tools, simply add `\"numberedBookmarks.navigateThroughAllFiles\": replace\"` to your setting and you are good to go.\n\n<table align=\"center\" width=\"85%\" border=\"0\">\n  <tr>\n    <td align=\"center\">\n      <a title=\"Open Settings\" href=\"command:workbench.action.openSettings?%5B%22numberedBookmarks.navigateThroughAllFiles%22%5D\">Open Settings</a>\n    </td>\n  </tr>\n</table>"
  },
  {
    "path": "walkthrough/inspiredInDelphiButOpenToOthers.nls.pt-br.md",
    "content": "## Inspirado no Delphi, mas aberto a outros\n\nA extensão foi inspirada no Delphi, pois eu fui um desenvolvedor Delphi por muito tempo, e adoro seus bookmarks. Mas ele suporta diferentes editores também. \n\nPara mudar um pouco como a extensão funciona (alternar e navegar), basta brincar com a configuração `numberedBookmarks.navigateThroughAllFiles`:\n\nValor | Explicação\n--------- | ---------\n`false` | _padrão_ - mesmo comportamento de hoje\n`replace` | você não pode ter o mesmo numbered bookmark em arquivos distintos\n`allowDuplicates` | você pode ter o mesmo numbered bookmark em arquivos distintos, e se você acionar repetidamente ao mesmo número, ele irá olhar para os outros arquivos.\n\n### Desenvolvedores IntelliJ / UltraEdit\n\nSe você é um usuário do **IntelliJ** ou **UltraEdit**, você vai notar que o numbered bookmarks funciona um pouco diferente do seu comportamento padrão.\n\nPara fazer **Numbered Bookmarks** funcionar do mesmo jeito dessas ferramentas, simplesmente adicione `\"numberedBookmarks.navigateThroughAllFiles\": replace\"` nas suas configurações e aproveite.\n\n<table align=\"center\" width=\"85%\" border=\"0\">\n  <tr>\n    <td align=\"center\">\n      <a title=\"Abrir Configurações\" href=\"command:workbench.action.openSettings?%5B%22numberedBookmarks.navigateThroughAllFiles%22%5D\">Abrir Configurações</a>\n    </td>\n  </tr>\n</table>"
  },
  {
    "path": "walkthrough/navigateToNumberedBookmarks.md",
    "content": "## Navigate to Numbered Bookmarks\n\nBookmarks represent positions in your code, so you can easily and quickly go back to them whenever necessary. \n\nThe extension provides commands to quickly navigate every bookmark, from `Numbered Bookmarks: Jump to Bookmark 0` to  `Numbered Bookmarks: Jump to Bookmark 9`, with a keyboard shortcut for each one of it (<kbd>Ctrl</kbd> +  <kbd>#number</kbd>)\n\nBut it is not limited to this. It also provides commands to see all Numbered Bookmarks within a file, or the entire workspace and easily go to it. Use the `Numbered Bookmarks: List` and `Numbered Bookmarks: List from All Files` command instead, and the extension will display a preview of the bookmarked line and it position. \n\n![List](../images/numbered-bookmarks-list-from-all-files.gif)\n\n> Tip: If you simply navigate on the list, the editor will temporarily scroll to its position, giving you a better understanding if that bookmark is what you were looking for.\n\n"
  },
  {
    "path": "walkthrough/navigateToNumberedBookmarks.nls.pt-br.md",
    "content": "## Navegar para Numbered Bookmarks\n\nBookmarks representam posições no seu código, então você pode voltar a elas de forma rápida e fácil sempre que necessário. \n\nEssa extensão disponibiliza comandos para nevegar facilmente para cada numbered bookmark, de `Numbered Bookmarks: Pular para Bookmark 0` até `Numbered Bookmarks: Pular para Bookmark 9`, com uma tecla de atalho para cada um (<kbd>Ctrl</kbd> +  <kbd>#number</kbd>)\n\nMas não está limitado a isso. Também disponibiliza comandos para visualizar todos os Numbered Bookmarks em um arquivo, ou em toda a área de trabalho. Use os comandos `Numbered Bookmarks: Listar` and `Numbered Bookmarks: Listar de Todos os Arquivos`, e a extensão apresentará uma prévia da linha com bookmark e sua posição. \n\n![Lista](../images/numbered-bookmarks-list-from-all-files.gif)\n\n> Dica: Se você simplesmente navegar pela lista, o editor irá rolar temporariamente para a posição do bookmark, dando-lhe um entendimento melhor se o bookmark é aquele que você está procurando.\n\n"
  },
  {
    "path": "walkthrough/toggle.md",
    "content": "## Toggle Numbered Bookmarks\n\nYou can easily Mark/Unmark Numbered Bookmarks on any position. \n\n![Toggle](../images/numbered-bookmarks-toggle.png)\n\n> Tip: Use Keyboard Shortcut <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>#number</kbd>"
  },
  {
    "path": "walkthrough/toggle.nls.pt-br.md",
    "content": "## Anternar Numbered Bookmarks\n\nVocê pode adicionar/remover Numbered Bookmarks facilmente em qualquer posição.\n\n![Alternar](../images/numbered-bookmarks-toggle.png)\n\n> Dica: Use o Atalho de Teclado <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>#number</kbd>"
  },
  {
    "path": "walkthrough/workingWithRemotes.md",
    "content": "## Working with Remotes\n\nThe extension fully supports [Remote Development](https://code.visualstudio.com/docs/remote/remote-overview) scenarios. \n\nIt means that when you connect to a _remote_ location, like a Docker Container, SSH or WSL, the extension will be available, ready to be used. \n\n> You don't need to install the extension on the remote.\n\nBetter yet, if you use `numberedBookmarks.saveBookmarksInProject` setting defined as `true`, the bookmarks saved locally _will be available_ remotely, and you will be able to navigate and update the bookmarks. Just like it was a resource from folder you opened remotely.\n\n"
  },
  {
    "path": "walkthrough/workingWithRemotes.nls.pt-br.md",
    "content": "## Trabalhando com Remotos\n\nA extensão suporta completamente cenários de [Desenvolvimento Remoto](https://code.visualstudio.com/docs/remote/remote-overview). \n\nIsso significa que quando você conecta a um local _remoto_, como Container Docker, SSH ou WSL, a extensão estará disponível, pronta para ser usada.\n\n> Você não precisa instalar a extensão no ambiente remoto.\n\nMelhor ainda, se você usar a configuração `numberedBookmarks.saveBookmarksInProject` definida como `true`, os bookmarks salvos localmente _estarão disponíveis_ remotamente, e você conseguirá navegar e atualizar os bookmarks. Assim como se fosse um recurso de uma pasta que você abriu remotamente.\n\n"
  },
  {
    "path": "webpack.config.js",
    "content": "/*---------------------------------------------------------------------------------------------\n *  Copyright (c) Alessandro Fragnani. All rights reserved.\n *  Copyright (c) Microsoft Corporation. All rights reserved.\n *  Licensed under the GPLv3 License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n//@ts-check\n\n'use strict';\n\nconst path = require('path');\nconst TerserPlugin = require('terser-webpack-plugin');\nconst webpack = require('webpack');\n\n\n\n/**@type {import('webpack').Configuration}*/\nconst config = {\n    entry: \"./src/extension.ts\",\n    optimization: {\n        minimizer: [new TerserPlugin({\n            parallel: true,\n            terserOptions: {\n                ecma: 2019,\n                keep_classnames: false,\n                mangle: true,\n                module: true\n            }\n        })],\n    },\n    \n    devtool: 'source-map',\n    externals: {\n        vscode: \"commonjs vscode\" // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/\n    },\n    resolve: { // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader\n        extensions: ['.ts', '.js']\n    },\n    module: {\n        rules: [{\n            test: /\\.ts$/,\n            exclude: /node_modules/,\n            use: [{\n                loader: 'ts-loader',\n            }]\n        }]\n    },\n};\n\nconst nodeConfig = {\n    ...config,\n    target: \"node\",\n    output: { // the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/\n        path: path.resolve(__dirname, 'dist'),\n        filename: 'extension-node.js',\n        libraryTarget: \"commonjs2\",\n        devtoolModuleFilenameTemplate: \"../[resource-path]\",\n    },\n}\n\nmodule.exports = [nodeConfig];\n"
  }
]