diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 77c92e88f0caa8ab8e7dd8fe5719f238dbd8839d..be2865a36dfe9e0a6ff7603acc699d1721563be2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,8 +1,5 @@ { // See https://go.microsoft.com/fwlink/?LinkId=827846 // for the documentation about the extensions.json format - "recommendations": [ - "dbaeumer.vscode-eslint", - "editorconfig.editorconfig" - ] + "recommendations": ["dbaeumer.vscode-eslint", "editorconfig.editorconfig"] } diff --git a/src/git_service.js b/src/git_service.js index aba4b6a1cd8252c8571e347bb5fb8cfa541321c6..3a940413441a500ed1521648868424ac57a29f61 100644 --- a/src/git_service.js +++ b/src/git_service.js @@ -66,7 +66,7 @@ const getInstancePath = () => { }; const escapeForRegExp = str => { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); + return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); }; const parseGitRemote = remote => { @@ -89,7 +89,7 @@ const parseGitRemote = remote => { return null; } - const match = pathname.match(pathRegExp + '\/(.+)\/(.*?)(?:.git)?$'); + const match = pathname.match(pathRegExp + '/(.+)/(.*?)(?:.git)?$'); if (!match) { return null; } diff --git a/src/search_input.js b/src/search_input.js index 75d88474b50d167627c78f0a675fd8cb5ed42fa2..e1ab715a1b21d790bcc10857c083ab6f076d70c0 100644 --- a/src/search_input.js +++ b/src/search_input.js @@ -79,8 +79,8 @@ const parseQuery = (query, noteableType) => { } // URL encode keys and values and return a new array to build actual query string. - const queryParams = Object.keys(params).map( - k => (params[k] ? `${encodeURIComponent(k)}=${encodeURIComponent(params[k])}` : ''), + const queryParams = Object.keys(params).map(k => + params[k] ? `${encodeURIComponent(k)}=${encodeURIComponent(params[k])}` : '', ); return queryParams.length ? `?${queryParams.join('&')}` : ''; diff --git a/src/webview/src/App.vue b/src/webview/src/App.vue index ea729211487544497d7f22375262c0c02ad6fe88..da811045aa9c3443a14f36e5c11606a22bdb7512 100644 --- a/src/webview/src/App.vue +++ b/src/webview/src/App.vue @@ -1,6 +1,7 @@ + + + + diff --git a/src/webview/src/components/Discussion.vue b/src/webview/src/components/Discussion.vue index de053b394edd41a86c716900ee84e704d26a02ea..5b3aa6ab87a311d93473c9b532f34f0f53a366db 100644 --- a/src/webview/src/components/Discussion.vue +++ b/src/webview/src/components/Discussion.vue @@ -53,7 +53,11 @@ export default { class="discussion" > -
+
{{ toggleRepliesText }}