profile
viewpoint

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha dd94d2ed78627dca2bfb250c2936ab4f061821e3

Readme tidyup

view details

HookyQR

commit sha aa557b2341d698ac6f285e8c5a69a40c465e7bcc

Enforce strict

view details

push time in 5 days

push eventjsspec/cli-options

HookyQR

commit sha 4167059c2dee20d182888b77632e3e6b5221af82

Readme tidyup

view details

HookyQR

commit sha 5e7693b67834828262a442da63230730ddf5f98f

Enforce strict

view details

push time in 5 days

push eventjsspec/format

HookyQR

commit sha f4c3194b741effff6d72b2a97481e86b1fbc9a83

Readme tidyup

view details

HookyQR

commit sha 49a7a77a81f5f57d0f7de212597360bdf8527cb1

Enforce strict

view details

push time in 5 days

push eventjsspec/cli-options

HookyQR

commit sha 91515f3e48386ad23e1c0f22fadd45e4a3004458

bump version for readme fix

view details

push time in 6 days

push eventjsspec/format

HookyQR

commit sha 824ffecf918d0269ae744345b164b383f2e4e9ec

Fix readme

view details

push time in 6 days

push eventjsspec/cli-options

push time in 6 days

push eventjsspec/cli-options

HookyQR

commit sha 69cd07119727654e27b696e86ecd69993c447273

Fix readme to relate to current project

view details

push time in 6 days

push eventjsspec/cli-options

HookyQR

commit sha 3a5dd03e36ddf1a1e658d88d4be9be009323ae8c

Change to shields.io badges

view details

push time in 6 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha 73169f8bc129ac763e65a7e61d10cba5e9a9579a

remove redundant travis matrix element

view details

HookyQR

commit sha 8aed36ad298aef5073fa4e4fbf701fc13ebaf10b

Change to shield.io badges

view details

push time in 6 days

create barnchjsspec/format

branch : master

created branch time in 6 days

created repositoryjsspec/format

Default results formatters

created time in 6 days

issue commentHookyQR/VSCodeBeautify

Issue with Version 5.0.0

Hi @Seth177, it's likely one of the other extensions you have is blowing up during the load process, in an unexpected way. When this happens, the extension loader dies, and all extensions yet to be loaded don't get to boot up. It's a long list you've got there, you might get lucky and see something of note in the dev tools (Help->Toggle Developer Tools). If it is beautify thats causing the issue, let me know.

Seth177

comment created time in 7 days

push eventjsspec/cli-options

HookyQR

commit sha caec0c8e31a5bad40aaa69686e8981b0b0f2c1f3

Improve coverage

view details

HookyQR

commit sha 62cda0c4c7afdf8977c886af67d04832cc292b26

Add ci and readme

view details

push time in 7 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha 9d528df38f44c9eb0acd25d7883c161f598f30c4

Fix travis yml formatting

view details

push time in 8 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha 2cce4de780a8c488576e3709bfdb651fdeea41e4

Remove node v12 from appveyor. Add platform matrix

view details

push time in 8 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha 16bc2ec4e37392ed37043447d55892cd45dcd41b

Add appveyor CI

view details

HookyQR

commit sha fcc4c3886a4835456f6358dc38eee9a44ff442f1

Add os matrix for travis

view details

push time in 8 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha ec7d577f7c944614b637ebf22ded3b859f64e6fa

Remove node v8 from travis. Bump version

view details

push time in 8 days

push eventjsspec/eslint-plugin-jsspec

HookyQR

commit sha 579650dd773ec8427e08286bc1b190aa666353c6

Add coverage and travis

view details

push time in 8 days

issue closedHookyQR/VSCodeBeautify

Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: beautify
  • Extension Version: 1.5.0
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.33.1

:warning: Make sure to attach this file from your home-directory: :warning:C:\Users\Puneet\HookyQR.beautify-unresponsive.cpuprofile.txt

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 13 days

preet10

issue commentHookyQR/VSCodeBeautify

Extension causes high cpu load

Still waiting for someone to supply the file. :warning: Make sure to attach this file from your home-directory: :warning:C:\Users\Puneet\HookyQR.beautify-unresponsive.cpuprofile.txt

Duplicate of #300

preet10

comment created time in 13 days

create barnchjsspec/cli-options

branch : master

created branch time in 13 days

created repositoryjsspec/cli-options

Simplified command line option parser

created time in 13 days

create barnchjsspec/eslint-plugin-jsspec

branch : master

created branch time in 13 days

created repositoryjsspec/eslint-plugin-jsspec

Linter plugin for JSSpec syntax

created time in 13 days

issue closedHookyQR/VSCodeBeautify

Snigle line [question]

  • Win10 (1803):
  • 1.33.1:
  • 1.4.11:

VS Code:

{
    "dart.flutterSdkPath": "A:\\Programming\\SDK\\flutter",
    "terminal.integrated.rendererType": "dom",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "editor.acceptSuggestionOnEnter": "on",
    "editor.quickSuggestionsDelay": 50,
    "window.closeWhenEmpty": false,
    "files.encoding": "utf8",
    "editor.dragAndDrop": true,
    "files.insertFinalNewline": false,
    "editor.showFoldingControls": "mouseover",
    "editor.find.seedSearchStringFromSelection": true,
    "files.hotExit": "onExit",
    "editor.lineNumbers": "on",
    "editor.selectionHighlight": true,
    "window.openFilesInNewWindow": "on",
    "workbench.editor.enablePreview": true,
    "files.autoSave": "off",
    "editor.mouseWheelScrollSensitivity": 1,
    "window.title": "${activeEditorFull}${separator}${rootName}",
    "editor.tabCompletion": "on",
    "editor.tabSize": 4,
    "editor.wordSeparators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",
    "editor.formatOnPaste": true,
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.snippetSuggestions": "top",
    "workbench.colorTheme": "Visual Studio Dark",
    "editor.mouseWheelZoom": true,
    
}

.jsbeautifyrc *default settings, I didn't change a single line

Action performed

Format and fold

<ul class="noheader diaryExtraspace">
      <li>Updated soon.</li>
</ul>

Expected results

<ul class="noheader diaryExtraspace"></ul>

Actual results

<ul class="noheader diaryExtraspace">
</ul>

I googled a lot and dig true everything and I've been told that there are extensions, to tell the truth I do not know exactly if this extension does this but what I want is this; simply it breaks the tag to the other line I want them to be in a single line. I read that vscode doesn't have this option and it is pretty annyoing me.

closed time in 20 days

MudulOzan

issue commentHookyQR/VSCodeBeautify

Snigle line [question]

The folding has nothing to do with this extension. VS Code folding always keeps the first and last line of the folded text in tact.

MudulOzan

comment created time in 20 days

issue commentHookyQR/VSCodeBeautify

How to avoid formatting (to incorrect code) especially in <script> tags - django-html

The best you can do is add "style" to the "unformatted" or the "content_unformatted" options in either the .jsbeautifyrc file, or within the beautify.config setting of VS Code.

badochov

comment created time in 21 days

issue commentHookyQR/VSCodeBeautify

Can I make Beautify treats all tag as inline element by default?

Can't be done. Sorry.

mannok

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

Newlines get duplicated on save

  • Win 10, 64bit:
  • VSCode 1.31.1
  • beautify Version: 1.4.9

NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code:

{
	"editor.formatOnSave": true
}

.editorconfig

# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false

.jsbeautifyrc

{
  "html": {
    "allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],
    "brace_style": "collapse",
    "end_with_newline": true,
    "indent_char": " ",
    "indent_handlebars": false,
    "indent_inner_html": false,
    "indent_scripts": "keep",
    "indent_size": 2,
    "max_preserve_newlines": 1,
    "preserve_newlines": false,
    "unformatted": ["a", "span", "img", "code", "pre", "sub", "sup", "em", "strong", "b", "i", "u", "strike",
      "big", "small", "pre", "option"
    ],
    "wrap_line_length": 300,
    "wrap_attributes": "force-aligned"
  },
  "css": {
    "allowed_file_extensions": ["css", "scss", "sass", "less"],
    "end_with_newline": false,
    "indent_char": " ",
    "indent_size": 2,
    "newline_between_rules": true,
    "selector_separator_newline": true
  },
  "js": {
    "allowed_file_extensions": ["js", "jsx", "json", "eslintrc", "jsbeautifyrc"],
    "brace_style": "collapse",
    "break_chained_methods": false,
    "comma_first": false,
    "e4x": false,
    "end_with_newline": true,
    "indent_char": " ",
    "indent_level": 0,
    "indent_size": 2,
    "jslint_happy": false,
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "max_preserve_newlines": 0,
    "preserve_newlines": true,
    "space_after_anon_function": false,
    "space_before_conditional": false,
    "space_in_empty_paren": false,
    "space_in_paren": false,
    "unescape_strings": false,
    "wrap_line_length": 120
  }
}

Action performed

save html template in vscode.

Expected results

formatted file: attributes on single lines, only preserve 1 newline, trim all others.

Actual results

formatting seems correct, but if I have a doble newline somewhere, beautiy ADDS one newline. So if i am saving 5 times, all my emoty newlines became 6 empty newlines.

closed time in 21 days

ManuelGraf

issue commentHookyQR/VSCodeBeautify

Newlines get duplicated on save

Can't duplicate. No response in over a month.

ManuelGraf

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: beautify
  • Extension Version: 1.4.11
  • OS Version: Darwin x64 18.5.0
  • VSCode version: 1.33.1

:warning: Make sure to attach this file from your home-directory: :warning:/Users/YAO/HookyQR.beautify-unresponsive.cpuprofile.txt

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 21 days

notte

issue commentHookyQR/VSCodeBeautify

Extension causes high cpu load

Duplicate of #300

notte

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

How does vetur relate to VSCodeBeautify

  • Operating System (+Version): Windows 10 x64 1809
  • VS Code Version: 1.31.1
  • beautify Version: 1.4.9

NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code:

// A path to a file, or an object containing the configuration options for js-beautify. If the .jsbeautifyrc file exists in project root, it overrides this configuration.
  "beautify.config": null,

  // List of paths to ignore when using VS Code format command, including format on save. Uses glob pattern matching.
  "beautify.ignore": [],

  // Link file types to the beautifier type
  "beautify.language": {
    "js": {
      "type": [
        "javascript",
        "json",
        "jsonc"
      ],
      "filename": [
        ".jshintrc",
        ".jsbeautifyrc"
      ]
    },
    "css": [
      "css",
      "less",
      "scss"
    ],
    "html": [
      "htm",
      "html"
    ]
  }

"vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "auto"
    },
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    }
  },

Action performed

Press the shortcut key to format automatically

Expected results

.vue file was formatted smoothly.

Actual results

image

closed time in 21 days

cooper1x

issue commentHookyQR/VSCodeBeautify

How does vetur relate to VSCodeBeautify

This question is void with the formatter selector capability was introduced into VS Code.

cooper1x

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

Formatting grid-template to single line

Currently formats the following grid-template code to one line in .scss files:

    grid-template:
        [row1-start] "header header header"25px [row1-end] 
        [row2-start] "footer footer footer"25px [row2-end] 
        / auto 50px auto;

closed time in 21 days

basickarl

issue commentHookyQR/VSCodeBeautify

Formatting grid-template to single line

Duplicate of #234. Not currently supported by js-beautify. Won't get supported (probably) till it has been accepted into the standard.

basickarl

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

PHP blade syntax produces error after format "->" becomes "- >"

  • Operating System (+Version): Windows 10
  • VS Code Version: 1.30.1
  • beautify Version: 1.4.7

NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code:

{
	"editor.formatOnSave": true
}

.jsbeautifyrc

{
	"max_preserve_newlines": 2,
	"preserve_newlines": true,
	"end_with_newline": true,
	"brace_style": "collapse-preserve-inline",
}

Action performed

Format html file with HookyQR.beautifyFile command F1 + Beautify file + HTML

Expected results

Expected ... to ... @foreach($employee -> services as $service) // Before: the blade php code in html template

Actual results

Details of what happened ... @foreach($employee - > services as $service) // After: Blade php syntax error..

closed time in 21 days

amitshahc

issue commentHookyQR/VSCodeBeautify

PHP blade syntax produces error after format "->" becomes "- >"

WOMM and no response from Issue opener.

amitshahc

comment created time in 21 days

issue commentHookyQR/VSCodeBeautify

Extension causes high cpu load

Duplicate of #300

pkoolc1

comment created time in 21 days

issue closedHookyQR/VSCodeBeautify

Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: beautify
  • Extension Version: 1.4.11
  • OS Version: Darwin x64 17.7.0
  • VSCode version: 1.33.1

:warning: Make sure to attach this file from your home-directory: :warning:/Users/paul/HookyQR.beautify-unresponsive.cpuprofile.txt

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 21 days

pkoolc1

issue commentHookyQR/VSCodeBeautify

Extension causes high cpu load

:warning: Make sure to attach this file from your home-directory: /Users/brentonpahl/HookyQR.beautify-unresponsive.cpuprofile.txt :warning:

bpahl78

comment created time in 21 days

issue commentHookyQR/VSCodeBeautify

Twig Inline css Brackets issue

I can't find a way either. Sorry.

metadiv

comment created time in 21 days

issue commentHookyQR/VSCodeBeautify

Preserve destructuring in javascript as single line statement

Using "brace_style": "collapse,preserve-inline" in either your .jsbeautifyrc or inside the "beautify.config": { } setting in VS Code.

mclusky

comment created time in 21 days

issue commentHookyQR/VSCodeBeautify

Extension causes high cpu load

:warning: Make sure to attach this file from your home-directory: :warning:/Users/YAO/HookyQR.beautify-unresponsive.cpuprofile.txt

notte

comment created time in 22 days

issue commentHookyQR/VSCodeBeautify

How to avoid formatting (to incorrect code) especially in <script> tags - django-html

This is likely to be controllable with a setting. Will get back to you soon.

badochov

comment created time in 25 days

create barnchHookyQR/eslint-plugin-bigint

branch : master

created branch time in a month

created repositoryHookyQR/eslint-plugin-bigint

Allow BigInt to work until it's accepted and then included in eslint core

created time in a month

issue commentHookyQR/VSCodeBeautify

How to config "wrap each JSX attribute in a new single line"?

Also, note that this code creates two new methods every time it is run (which is likely every time it is rendered). You should bind your callbacks in your constructor to avoid this.

See the paragraph directly before this anchor: https://reactjs.org/docs/handling-events.html#passing-arguments-to-event-handlers

imageslr

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

How to config "wrap each JSX attribute in a new single line"?

Beautify doesn't format html(ish) code embedded in javascript. Sorry.

imageslr

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

Minify resulting in file with "undefined"

Should be fixed now. There's a second update required. (oops)

rfossella

comment created time in 2 months

push eventHookyQR/VSCodeMinify

TJ Hoekstra

commit sha d322376094f288525bd6d96a5848c5fe78f5d622

bump version

view details

push time in 2 months

push eventHookyQR/VSCodeMinify

Patrick Nolin

commit sha 563a6197a9dda8e0f5a1042d9cfee9ec72f0bdd9

Removed harcoded bracketize = true. (#38) - Allows for js files to be minified.

view details

push time in 2 months

PR merged HookyQR/VSCodeMinify

Fix for javascript files.

The hardcoded opts.bracketize = true; prevents any javascript files from being minified.

This PR fixes that.

Removed harcoded bracketize = true.

  • Allows for js files to be minified.
+0 -1

1 comment

1 changed file

pnolin

pr closed time in 2 months

pull request commentHookyQR/VSCodeMinify

Fix for javascript files.

Oops, that shouldn't have made it through. That was for test only.

pnolin

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

Interest in inline minify without needing to save a file?

Sorry for the delayed response. Sure, send a PR. You might want to rebase on the current master. There's been several changes.

petertirrell

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

create minified version on save when the related file does not exist

Correct. You just have to run it manually once, then it will happen on save from then on. This avoids accidentally minifying files that you don't want/need minified.

rrd108

comment created time in 2 months

issue closedHookyQR/VSCodeMinify

Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: minify
  • Extension Version: 0.3.0
  • OS Version: Darwin x64 17.7.0
  • VSCode version: 1.31.1

:warning: Make sure to attach this file from your home-directory: /Users/apple/HookyQR.minify-unresponsive.cpuprofile.txt :warning:

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 2 months

jft-id

issue closedHookyQR/VSCodeMinify

Extension host crashes on minify 0.4.0

With 0.4.0 the extension host crashes every time I try to minify my js files. Content of js file doesn't matter (I even tried with a simple "console.log('Hello world')" and got the crash. 0.3.0 works fine I am using visual studio code 1.32.3 on Windows 10 Pro 1809.

As temporary fix I reverted the extension to 0.3.0 and disable auto update of extensions.

Update: it seems it is caused by having the default settings as listed on in the extension page all in the settings.json of the project, as soon as I remove that block minify works.

closed time in 2 months

Eupeodes

push eventHookyQR/VSCodeMinify

TJ Hoekstra

commit sha 4c1b38f55d7fcd402a14b66573e2ea7a69f9a599

Fix bracketize translation to braces

view details

push time in 2 months

push eventHookyQR/VSCodeMinify

TJ Hoekstra

commit sha b229597e53ad4b3c6c1eef6a59fb9fd8bdccd069

Deal with terser settings changes

view details

push time in 2 months

issue commentHookyQR/VSCodeMinify

Minify resulting in file with "undefined"

compress.cascade is no longer supported and output.bracketize has been replaced by output.braces. There's code in the extension to handle this, but I dropped the e out of bracketize, so it would continue through and be flagged as an 'unsupported option', thus failing to compress. Pushing a new version now.

rfossella

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

Extension host crashes on minify 0.4.0

0.4.1 published.

Eupeodes

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

Extension host crashes on minify 0.4.0

Ah, some of the settings listed there are invalid now because of the move from uglify to terser. Will update the readme.

The offenders are cascade (removed) and bracketize becomes braces.

Eupeodes

comment created time in 2 months

push eventHookyQR/VSCodeBeautify

TJ Hoekstra

commit sha afe28bdb992b096eed20603bae67d09be2a50fd3

Don't use indent size of 'tab'.

view details

TJ Hoekstra

commit sha 6dfff2f014acb7358ef67aadc77bc0aa8f255e7e

Add null and handle empty array for language types. Closes #289

view details

push time in 2 months

issue closedHookyQR/VSCodeBeautify

Cannot disable JavaScript formatting with beautify.language

  • Operating System (+Version): Windows 10.0.17763
  • VS Code Version: 1.31.0
  • beautify Version: 1.4.8

NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.

Code Snippet:

function example(user) {
    return { error: false, user: user };
}

VS Code Settings:

"beautify.language": {
    "html": [
        "htm",
        "html"
    ],
    "css": [],
    "js": {}
}
// -- OR --
"beautify.language": {
    "html": [
        "htm",
        "html"
    ]
}

Action performed

Right click on JavaScript file and click "Format Document".

Expected results

Expected to do nothing since the beautify.language was disabled for js.

Actual results

Beautify did format the file to become the following:

function example(user) {
    return {
        error: false,
        user: user
    };
}

Additional Information

I am trying to use Beautify for HTML formatting and Prettier for JS/CSS formatting. This seemed to be working up until the latest 1.31.0 VS Code update when this started to happen. The testing above happened when Prettier was disabled for a clean test. When I am using both, they seem to fight over the file and have inconsistent behavior (sometimes it'll format with Prettier, sometimes Beautify, sometimes nothing). It seems like I've narrowed it down to Beautify not respecting the beautify.language setting which is why I am posting this issue here.

closed time in 2 months

CreativeTechGuy

issue commentHookyQR/VSCodeBeautify

Cannot disable JavaScript formatting with beautify.language

Seem it can only be 'unset' with either 'null' or an empty array. Using an empty object allows VS Code to merge in the defaults still, so that can't be fixed.

CreativeTechGuy

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

Editorconfig should override VS Code workspace/user settings

editorconfig settings override VS Code and editor settings already.

tabSize is only related to the display width and nothing to do with actual file format. If you wish to use a specific number of spaces per indent, use indent_style = space and indent_size = 4 (eg) instead. Beautify doesn't control the editor.

Sorry it took sooooooo long to get on to this.

GrimLink

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

PHP blade syntax produces error after format "->" becomes "- >"

Try with the latest version. Seems to workout fine now. ;)

amitshahc

comment created time in 2 months

issue closedHookyQR/VSCodeBeautify

HTML head and body not indented by default

  • Operating System (+Version): 1709
  • VS Code Version: 1.30.2
  • beautify Version: 1.4.7

Maybe I'm unsure of the proper HTML indent formatting but I thought the hierarchical structure standard was to indent between the <html> tags.

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code:

{
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true,
    "editor.formatOnType": false,
}

Action performed

Formatting an HTML file that's indented properly like below on save.

<!DOCTYPE html>
<html>
      <head>
        <title>TypeScript Greeter</title>
      </head>

      <body>
        <script src="greeter.js"></script>
      </body>
</html>

Expected results

I'm expecting that the formatting stays the same or adds a new line between respective tags.

<!DOCTYPE html>
<html>

  <head>
    <title>TypeScript Greeter</title>
  </head>

  <body>
    <script src="greeter.js"></script>
  </body>

</html>

Actual results

Everything gets pushed to the left except <title> and <script>.

<!DOCTYPE html>
<html>

<head>
  <title>TypeScript Greeter</title>
</head>

<body>
  <script src="greeter.js"></script>
</body>

</html>

closed time in 2 months

DanJ210

issue closedHookyQR/VSCodeBeautify

Space after colon

I wonder if theres some way to add something like "space_after_colon": true, to CSS, JS and JSON and maybe style HTML attribute, just like space_in_paren works

CSS BEFORE:

.row {
    width:200px
}

CSS AFTER:

.row {
    width: 200px
}

JSON/JS BEFORE:

let obj = {
    settings:{
         width:100,
         height:300
    }
}

JSON/JS AFTER:

let obj = {
    settings: {
         width: 100,
         height: 300
    }
}

Suggestion (if "wrap_attribtes": "force-aligned") HTML Style attr BEFORE: <div id="myDiv" class="myClass" style="width:300px;height:200px">Hello</div>

HTML Style attr AFTER:

<div id="myDiv" 
     class="myClass" 
     style="width: 300px;
            height: 200px">
    Hello
</div>
  • Operating System (+Version): Windows 10
  • VS Code Version: 1.30
  • beautify Version: 1.4.7

closed time in 2 months

juninhodeluca

issue commentHookyQR/VSCodeBeautify

Space after colon

Other than the style attribute version, the space gets inserted always, so there would only be a need for this if you wanted it not to happen this way.

juninhodeluca

comment created time in 2 months

issue closedHookyQR/VSCodeBeautify

Doesn't do anything

  • Operating System (+Version): macOS 10.13.6
  • VS Code Version: 1.28.2
  • beautify Version: 1.4.7

NOTE: Please provide code snippets instead of screen shots. Your issue needs to be replicated, and we need the failing code (text) to do this.

Note: I just installed Beautify for the first time. I've used the Beautify package for Atom, which works great.

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig)

$ cat ~/.jsbeautifyrc
cat: /Users/mstratton/.jsbeautifyrc: No such file or directory
$ cat ~/.editorconfig
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.py]
indent_style = space
indent_size = 2

Action performed

With a saved JSON file open with the contents:

  {"access_token":"whatever","created_at":1540410886}

Press F1, and select "Beautify file".

Expected results

Expected contents of file to be formatted, something like this:

{
  "access_token": "whatever",
  "created_at": 1540410886
}

Actual results

Nothing happened. The file contents are the same as before.

Additional Notes

I opened Developer Tools, ran the same steps above, and nothing appeared in the console.

js-beautify

Maybe I need to install js-beautify? I tried that: npm -g i js-beautify, then in VSCode, called the "Reload Window" command. I tried the same steps described above, and got the same results.

js-beautify config files=

Maybe I need to create a js-beautify config file?

cat > ~/.jsbeautifyrc
{}

Tried same reproduction steps as above, and got the same result.

closed time in 2 months

moxley

issue commentHookyQR/VSCodeBeautify

Doesn't do anything

Closing due to lack of response.

moxley

comment created time in 2 months

issue closedHookyQR/VSCodeBeautify

How to set "inline" option for HTML

  • Ubuntu 16.04:
  • 1.30.2:
  • 1.4.7:

Seems like there is no html.format.inline option to configure. It was added not long ago to JSBeautify: merge request

closed time in 2 months

f3oall

issue closedHookyQR/VSCodeBeautify

beautify removes parentheses around code

*Before Beautify this.height = (Math.random() * 5 )+ 3; this.speed = Math.random() * 6 + 3;

*After Beautify this.height = Math.random() * 5 + 3; this.speed = Math.random() * 6 + 3;

Beautify does not allow me to save code with parentheses not tied to a function. The this.height needs parentheses for the function to process the way I need it to. However, whenever I try to save the file with beautify code active, it will remove the parentheses around that line as there isn't a function tied to them.

The trick I found toe keep the parentheses I need is the below

this.y = 1 * (Math.random() * 80) - 80; this.height = 1 * (Math.random() * 5) + 3;

now when saving, the parentheses remain.

closed time in 2 months

Zamio77

issue commentHookyQR/VSCodeBeautify

beautify removes parentheses around code

Closing as can't reproduce + no response.

Zamio77

comment created time in 2 months

push eventHookyQR/VSCodeBeautify

TJ Hoekstra

commit sha 6580c2200ed5afeec0eac31b05747f262ff2356d

Bump js-beautify version

view details

push time in 2 months

push eventHookyQR/VSCodeMinify

TJ Hoekstra

commit sha 2b2f209926a88bafc0663d153e94176fb4bbf042

Switch to terser

view details

TJ Hoekstra

commit sha 732351d0ad5fde6275f4125994810fa2317cb639

Update to correct data block syntax

view details

TJ Hoekstra

commit sha 2c2183f3e21e704538bf210524877c4ae6e57f26

Format

view details

TJ Hoekstra

commit sha d87de5e61b322be93113bc93f68b032429a263a1

Step minor version

view details

TJ Hoekstra

commit sha a4bf1135a728c3f341fe82c7384a5b715b4cf517

png the icon

view details

push time in 2 months

issue closedHookyQR/VSCodeBeautify

can not support less format,wish css、less、sass Single line formatting

can not support less format,wish css、less、sass Single line formatting image

For me (and many developpers), it's far easier to read and to work on css formatted that way.

closed time in 2 months

ayin86

issue commentHookyQR/VSCodeBeautify

can not support less format,wish css、less、sass Single line formatting

Not supported by the upstream formatter: https://github.com/beautify-web/js-beautify

ayin86

comment created time in 2 months

issue closedHookyQR/VSCodeMinify

Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: minify
  • Extension Version: 0.3.0
  • OS Version: Linux x64 3.13.0-166-generic
  • VSCode version: 1.32.2

:warning: Make sure to attach this file from your home-directory: /home/venkatesh/HookyQR.minify-unresponsive.cpuprofile.txt :warning:

Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load

closed time in 2 months

venki208

issue commentHookyQR/VSCodeMinify

Extension causes high cpu load

Dup of #31.

venki208

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

Extension causes high cpu load

I've pushed a new version which may resolve this, let me know how version 0.4.0 performs for you.

jft-id

comment created time in 2 months

issue commentHookyQR/VSCodeMinify

can not minify js file which contain symbol “·”

Have a try with version 0.4.0.

jifengg

comment created time in 2 months

issue closedHookyQR/VSCodeMinify

Doesn't minify

I installed this extension in VS Code. Opened a JS file and ran the Minify command, but nothing happened. Shouldn't it work on the currently opened file in the editor?

Am I missing something?

no-minify

closed time in 2 months

ScrippsFEE

issue commentHookyQR/VSCodeMinify

Doesn't minify

Fixed in 0.4.0. (uglify-js didn't support es6)

ScrippsFEE

comment created time in 2 months

issue closedHookyQR/VSCodeMinify

Minify failed: SyntaxError: Unexpected token: operator(>)

The following working JavaScript example minify's in version 0.2.5 but will not minify in 0.3.0.
Error is: Minify failed: SyntaxError: Unexpected token: operator(>) Is there an update that will allow this to minify?

Thanks

//***************************************************************************************************
const delegate = (selector) => (cb) => (e) => e.target.matches(selector) && cb(e);
const inputDelegate = delegate('input'); 

window.addEventListener('load', function() {
   document.addEventListener('focusin', inputDelegate((el) => focusIn(el)));

   document.addEventListener('focusout', inputDelegate((el) => focusOut(el)));
});

function focusIn(e) {
   console.log('Focus In Event');
}

function focusOut(e) {
   console.log('Focus Out Event');
} 

closed time in 2 months

jenbk

issue commentHookyQR/VSCodeMinify

Minify failed: SyntaxError: Unexpected token: operator(>)

Fixed in 0.4.0.

jenbk

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

Newlines get duplicated on save

Also, what other extensions are you using?

ManuelGraf

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

Newlines get duplicated on save

Please provide an example input. I can't replicate your issue with what I'm using.

ManuelGraf

comment created time in 2 months

issue commentHookyQR/VSCodeBeautify

How does vetur relate to VSCodeBeautify

The vetur extension has nothing to do with the beautify extension. It looks like it uses the same backend as we do here. To use beautify as your formatter for vue add "vue"to the "html"array under the "beautify.language" option. This will not pick up the settings in the "vetur.format.defaultFormatterOptions" as they're unrelated.

cooper1x

comment created time in 2 months

issue commentMicrosoft/vscode

Allow language extensions to override editor.wordSeparators

I'm saying, I'm creating a new extension, I don't use powershell, or the extension. The problem is in the VS Code mainline ... somewhere. 🤷‍♂️

daviwil

comment created time in 2 months

issue commentrubyide/vscode-ruby

Having two while-loops in a file breaks symbol location

You're just too quick for me. 😉

peret

comment created time in 3 months

issue commentrubyide/vscode-ruby

Having two while-loops in a file breaks symbol location

The extension will need a version bump (post npm install) to shove the new version into the package.

peret

comment created time in 3 months

issue commentrubyide/vscode-ruby

Having two while-loops in a file breaks symbol location

ruby-method-locate 0.0.6 has been published. Thanks for your PR @peret. Sorry it took SOOOO long.

peret

comment created time in 3 months

push eventHookyQR/ruby-method-locate

Hooky

commit sha 8832005f7987d09d9f71e7a2aada4c45b29b6939

Update dependency versions to remove vulnerabilities

view details

push time in 3 months

push eventHookyQR/ruby-method-locate

Hooky

commit sha f73717530be168c0274cd37a0967344ba46184f7

Step version and add an extra test for kicks

view details

push time in 3 months

push eventHookyQR/ruby-method-locate

Peter Retzlaff

commit sha 11fad50613a6786dd9a714bd8537d19582d374fc

Fix inverted condition in the condition block processor. ConditionBlocks (while/until) in their block form were accidentally parsed as modifiers and vice versa.

view details

HookyQR

commit sha 5227d71bcccd42cb516bfbfc0103dc7f11291fc6

Merge pull request #1 from peret/fix-condition-block-detection Fix parsing of while-loops

view details

push time in 3 months

PR merged HookyQR/ruby-method-locate

Fix parsing of while-loops

This PR fixes a bug in the handling of while/until blocks. I.e. the code used an inverted if-condition leading to while-blocks being handle like while-modifiers and vice versa. Therefore, in code like this:

def fn
 while true
    a = 1
    break
  end
end

def other!
end;

the while was handled as if it was a modifier and therefore the corresponding end leads to an early out of the parsing process and no methods after that will be picked up.

The existing test case didn't fail because it contained both, the modifier- and block-version of the while loop.

+26 -3

3 comments

2 changed files

peret

pr closed time in 3 months

issue commentMicrosoft/vscode

Allow language extensions to override editor.wordSeparators

Doesn't solve my problem of symbols beginning with characters considered to be wordSeparators by default.

daviwil

comment created time in 3 months

more