Skip to content

UTF-16 files not properly found #158

Description

@donjoergo

I noticed a weird behavior after upgrading from todo-tree to better-todo-tree.

The TODOs in SQL files are not shown in the extension's sidebar view anymore.

Image

However it seems that when a SQL file is opened directly, all TODOs are highlighted correctly inside of the file. With Gruntfuggly/todo-tree this worked previously.

Can someone confirm, or maybe I am missing a configuration setting here?

The regex pattern:
(//|#|<!--|;|/\\*|^|--|^[ \\t]*(-|\\d+.))\\s*($TAGS)

The whole config, just for reference:

"better-todo-tree.tree.scanMode": "workspace",
  "better-todo-tree.general.showActivityBarBadge": true,
  "better-todo-tree.tree.showCountsInTree": true,
  "better-todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|--|^[ \\t]*(-|\\d+.))\\s*($TAGS)",
  "better-todo-tree.regex.regexCaseSensitive": false,
  "better-todo-tree.general.tags": [
    "BUG",
    "HACK",
    "FIXME",
    "TODO",
    "XXX",
    "[ ]",
    "[x]",
    "WORKAROUND"
  ],
  "better-todo-tree.highlights.customHighlight": {
    "BUG": {
      "icon": "bug",
      "gutterIcon": true,
      "foreground": "#ffffff",
      "background": "#ff1040",
      "iconColour": "#ff1040",
      "rulerColour": "#ff1040"
    },
    "FIXME": {
      "icon": "flame",
      "gutterIcon": true,
      "foreground": "#ffffff",
      "background": "#ff7810",
      "iconColour": "#ff7810",
      "rulerColour": "#ff7810"
    },
    "TODO": {
      "icon": "checklist",
      "gutterIcon": true,
      "foreground": "#ffffff",
      "background": "#ff1040",
      "iconColour": "#ff1040",
      "rulerColour": "#ff1040"
    },
    "XXX": {
      "gutterIcon": true,
      "foreground": "#ffffff",
      "background": "#8402e7",
      "iconColour": "#8402e7",
      "rulerColour": "#8402e7"
    },
    "WORKAROUND": {
      "icon": "tools",
      "gutterIcon": true,
      "foreground": "#2f2f2f",
      "background": "#02e7cc",
      "iconColour": "#02e7cc",
      "rulerColour": "#02e7cc"
    }
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions