Skip to content

Commit

Permalink
It is safe to assume mimeType is present; fix binder install command
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Nov 12, 2023
1 parent 1ecdd3a commit 81815b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _(*args, **kwargs):
_(sys.executable, "-m", "pip", "check")

# install jupyterlab pre-release
_(sys.executable, "-m", "pip", "install", "-U", "--pre", "'jupyterlab>=4.1.0a3,<5'")
_(sys.executable, "-m", "pip", "install", "-U", "--pre", "jupyterlab>=4.1.0a3,<5")

# install the labextension
_(sys.executable, "-m", "pip", "install", "-e", ".")
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class TransformersInlineProvider implements IInlineCompletionProvider {
'text/x-latex',
'text/x-rsrc'
];
const isText = textMimeTypes.includes(request.mimeType);
const isText = textMimeTypes.includes(request.mimeType!);
// TODO add a setting to only invoke on text if explicitly asked (triggerKind = invoke)
const model = isText ? this._settings.textModel : this._settings.codeModel;

Expand Down

0 comments on commit 81815b3

Please sign in to comment.