Skip to content

Commit

Permalink
Bump to latest tom-select. Thanks @oyejorge (#5779)
Browse files Browse the repository at this point in the history
Worked just fine in local testing!
  • Loading branch information
mattgodbolt committed Nov 21, 2023
1 parent d0de290 commit af532dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
16 changes: 6 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -73,7 +73,7 @@
"systemd-socket": "0.0.0",
"tar-stream": "^3.0.0",
"temp": "^0.9.4",
"tom-select": "2.0.3",
"tom-select": "^2.3.1",
"tree-kill": "^1.2.2",
"triple-beam": "^1.3.0",
"ts-node": "^10.4.0",
Expand Down
6 changes: 3 additions & 3 deletions static/panes/diff.ts
Expand Up @@ -208,7 +208,7 @@ export class Diff extends MonacoPane<monaco.editor.IStandaloneDiffEditor, DiffSt
dropdownParent: 'body',
plugins: ['input_autogrow'],
onChange: value => {
const options = decodeSelectizeValue(value as any as string);
const options = decodeSelectizeValue(value as string);
if (picker.classList.contains('lhsdifftype')) {
this.lhs.difftype = options.difftype;
this.lhs.extraoption = options.extraoption;
Expand Down Expand Up @@ -258,8 +258,8 @@ export class Diff extends MonacoPane<monaco.editor.IStandaloneDiffEditor, DiffSt
dropdownParent: 'body',
plugins: ['input_autogrow'],
onChange: value => {
if (!((value as any as string) in this.compilers)) return;
const compiler = this.compilers[value as any as string];
if (!((value as string) in this.compilers)) return;
const compiler = this.compilers[value as string];
if (picker.classList.contains('lhs')) {
this.lhs.compiler = compiler;
this.lhs.id = compiler.id;
Expand Down
2 changes: 1 addition & 1 deletion static/panes/llvm-opt-pipeline.ts
Expand Up @@ -111,7 +111,7 @@ export class LLVMOptPipeline extends MonacoPane<monaco.editor.IStandaloneDiffEdi
dropdownParent: 'body',
plugins: ['input_autogrow'],
sortField: 'title',
onChange: e => this.selectFunction(e as any as string),
onChange: e => this.selectFunction(e as string),
});
this.clickCallback = this.onClickCallback.bind(this);
this.keydownCallback = this.onKeydownCallback.bind(this);
Expand Down
2 changes: 1 addition & 1 deletion static/widgets/compiler-picker.ts
Expand Up @@ -122,7 +122,7 @@ export class CompilerPicker {
// Typing here needs improvement later anyway.
/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */
if (val) {
const compilerId = val as any as string;
const compilerId = val as string;
ga.proxy('send', {
hitType: 'event',
eventCategory: 'SelectCompiler',
Expand Down

0 comments on commit af532dd

Please sign in to comment.