Merge pull request #3301 from overleaf/ns-clean-snippets

remove malicious suggestions from autocomplete

GitOrigin-RevId: 6112b375b9f4bdbf3de3ff6651b460de1c1c31ca
This commit is contained in:
Jakob Ackermann 2020-10-21 11:48:05 +02:00 committed by Copybot
parent a124c3e4f4
commit 7088651c0c

View file

@ -14,18 +14,6 @@ export default [
meta: 'env',
score: 7.849662248028187
},
{
caption: '\\begin{}[]',
snippet: '\\begin{$1}[$2]',
meta: 'env',
score: 7.849662248028187
},
{
caption: '\\begin{}{}',
snippet: '\\begin{$1}{$2}',
meta: 'env',
score: 7.849662248028187
},
{
caption: '\\end{}',
snippet: '\\end{$1}',
@ -242,24 +230,12 @@ export default [
meta: 'cmd',
score: 0.42937815279867964
},
{
caption: '\\left[]',
snippet: '\\left[$1]',
meta: 'cmd',
score: 0.42937815279867964
},
{
caption: '\\sum',
snippet: '\\sum',
meta: 'cmd',
score: 0.42607994509619934
},
{
caption: '\\noindent',
snippet: '\\noindent',
meta: 'cmd',
score: 0.42355747798114207
},
{
caption: '\\chapter{}',
snippet: '\\chapter{$1}',
@ -308,24 +284,12 @@ export default [
meta: 'cmd',
score: 0.354445763583904
},
{
caption: '\\setlength',
snippet: '\\setlength',
meta: 'cmd',
score: 0.354445763583904
},
{
caption: '\\mathcal{}',
snippet: '\\mathcal{$1}',
meta: 'cmd',
score: 0.35084018920966636
},
{
caption: '\\newline',
snippet: '\\newline',
meta: 'cmd',
score: 0.3311721696201715
},
{
caption: '\\newpage',
snippet: '\\newpage',
@ -338,12 +302,6 @@ export default [
meta: 'cmd',
score: 0.3267437011085663
},
{
caption: '\\renewcommand',
snippet: '\\renewcommand',
meta: 'cmd',
score: 0.3267437011085663
},
{
caption: '\\theta',
snippet: '\\theta',
@ -374,18 +332,6 @@ export default [
meta: 'cmd',
score: 0.2957960629411553
},
{
caption: '\\citep{}',
snippet: '\\citep{$1}',
meta: 'cmd',
score: 0.2941882834697057
},
{
caption: '\\color[]{}',
snippet: '\\color[$1]{$2}',
meta: 'cmd',
score: 0.2864294797053033
},
{
caption: '\\color{}',
snippet: '\\color{$1}',
@ -434,12 +380,6 @@ export default [
meta: 'cmd',
score: 0.25264309033778715
},
{
caption: '\\hat',
snippet: '\\hat',
meta: 'cmd',
score: 0.25264309033778715
},
{
caption: '\\bibliographystyle{}',
snippet: '\\bibliographystyle{$1}',
@ -452,24 +392,12 @@ export default [
meta: 'cmd',
score: 0.2447632045426295
},
{
caption: '\\small{}',
snippet: '\\small{$1}',
meta: 'cmd',
score: 0.2447632045426295
},
{
caption: '\\LaTeX',
snippet: '\\LaTeX',
meta: 'cmd',
score: 0.2334089308452787
},
{
caption: '\\LaTeX{}',
snippet: '\\LaTeX{$1}',
meta: 'cmd',
score: 0.2334089308452787
},
{
caption: '\\cdot',
snippet: '\\cdot',
@ -482,24 +410,12 @@ export default [
meta: 'cmd',
score: 0.2253056071787701
},
{
caption: '\\newtheorem{}[]{}',
snippet: '\\newtheorem{$1}[$2]{$3}',
meta: 'cmd',
score: 0.215689795055434
},
{
caption: '\\newtheorem{}{}',
snippet: '\\newtheorem{$1}{$2}',
meta: 'cmd',
score: 0.215689795055434
},
{
caption: '\\newtheorem{}{}[]',
snippet: '\\newtheorem{$1}{$2}[$3]',
meta: 'cmd',
score: 0.215689795055434
},
{
caption: '\\Delta',
snippet: '\\Delta',
@ -530,24 +446,12 @@ export default [
meta: 'cmd',
score: 0.2038592081252624
},
{
caption: '\\footnotesize{}',
snippet: '\\footnotesize{$1}',
meta: 'cmd',
score: 0.2038592081252624
},
{
caption: '\\large',
snippet: '\\large',
meta: 'cmd',
score: 0.20377416734108866
},
{
caption: '\\large{}',
snippet: '\\large{$1}',
meta: 'cmd',
score: 0.20377416734108866
},
{
caption: '\\sqrt{}',
snippet: '\\sqrt{$1}',
@ -566,18 +470,6 @@ export default [
meta: 'cmd',
score: 0.1987771081149759
},
{
caption: '\\Large{}',
snippet: '\\Large{$1}',
meta: 'cmd',
score: 0.1987771081149759
},
{
caption: '\\cvitem{}{}',
snippet: '\\cvitem{$1}{$2}',
meta: 'cmd',
score: 0.19605476980016281
},
{
caption: '\\rho',
snippet: '\\rho',
@ -602,12 +494,6 @@ export default [
meta: 'cmd',
score: 0.18137737738638837
},
{
caption: '\\boldsymbol',
snippet: '\\boldsymbol',
meta: 'cmd',
score: 0.18137737738638837
},
{
caption: '\\gamma',
snippet: '\\gamma',
@ -650,30 +536,12 @@ export default [
meta: 'cmd',
score: 0.1525055392611109
},
{
caption: '\\address[]{}',
snippet: '\\address[$1]{$2}',
meta: 'cmd',
score: 0.1525055392611109
},
{
caption: '\\address{}{}{}',
snippet: '\\address{$1}{$2}{$3}',
meta: 'cmd',
score: 0.1525055392611109
},
{
caption: '\\quad',
snippet: '\\quad',
meta: 'cmd',
score: 0.15242755832392743
},
{
caption: '\\email{}',
snippet: '\\email{$1}',
meta: 'cmd',
score: 0.1522294670109857
},
{
caption: '\\paragraph{}',
snippet: '\\paragraph{$1}',
@ -746,12 +614,6 @@ export default [
meta: 'cmd',
score: 0.0010424880711234978
},
{
caption: '\\varsigma{}',
snippet: '\\varsigma{$1}',
meta: 'cmd',
score: 0.0010424880711234978
},
{
caption: '\\upsilon',
snippet: '\\upsilon',