Skip to content

Commit a16ac47

Browse files
committed
plugin didn't work on android 7.0, now fixed
1 parent c8f2eef commit a16ac47

6 files changed

Lines changed: 5 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
test.mjs
2+
test.mjs
3+
.vscode

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "acode-plugin-prettier",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Acode plugin to format code",
55
"main": "dist/main.js",
66
"repository": "https://github.com/deadlyjack/acode-plugin-prettier.git",

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "acode.plugin.prettier",
33
"name": "Prettier",
44
"main": "dist/main.js",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"readme": "readme.md",
77
"icon": "icon.png",
88
"type": "free",

src/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ class Prettier {
8787
const code = editor.getValue();
8888
const cursorPos = editor.getCursorPosition();
8989
const parser = Prettier.inferParser(activeFile.name);
90-
console.log("biraj's parser is", parser);
9190
const res = prettier.formatWithCursor(code, {
9291
parser,
9392
cursorOffset: this.#cursorPosTocursorOffset(cursorPos),

webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = (env, options) => {
55
const rules = [
66
{
77
test: /\.m?js$/,
8-
exclude: /node_modules/,
98
use: {
109
loader: "babel-loader",
1110
options: {

0 commit comments

Comments
 (0)