Skip to content

Commit 556a4fb

Browse files
committed
fix(vscode): promote ts plugin to first
1 parent 3353210 commit 556a4fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/vscode/extension.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ try {
1818
text = text.replace('!r.has(s.code)', s => `${s}&&s.source!=="tsslint"`);
1919
text = text.replace('e.fixName===o', s => `${s}||s.source==="tsslint"`);
2020

21+
// sort plugins
22+
text = text.replace('"--globalPlugins",i.plugins', '"--globalPlugins",i.plugins.sort((a,b)=>(b.name==="typescript-tsslint-plugin-bundled"?1:0)-(a.name==="typescript-tsslint-plugin-bundled"?1:0))');
23+
2124
return text;
2225
}
2326
return readFileSync(...args);

0 commit comments

Comments
 (0)