-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unkownutil周りのライブラリを上げて、型判定周りを整理 #93
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,8 +1,9 @@ | ||||||||||||||||
import { | ||||||||||||||||
assert, | ||||||||||||||||
dduVim, | ||||||||||||||||
dduVimSource, | ||||||||||||||||
Denops, | ||||||||||||||||
ensureString, | ||||||||||||||||
is, | ||||||||||||||||
Comment on lines
+2
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove unused imports. The -import {
- assert,
- dduVim,
- dduVimSource,
- Denops,
- is,
- vars,
-} from "../traqvim/deps.ts";
+import { assert, is, vars } from "../traqvim/deps.ts"; Committable suggestion
Suggested change
|
||||||||||||||||
vars, | ||||||||||||||||
} from "../traqvim/deps.ts"; | ||||||||||||||||
import { ActionData } from "../@ddu-kinds/channel.ts"; | ||||||||||||||||
|
@@ -18,7 +19,7 @@ export class Source extends dduVim.BaseSource<Params> { | |||||||||||||||
kind = "channel"; | ||||||||||||||||
async onInit(args: dduVimSource.OnInitArguments<Params>): Promise<void> { | ||||||||||||||||
const path = await vars.globals.get(args.denops, "traqvim#token_file_path"); | ||||||||||||||||
ensureString(path); | ||||||||||||||||
assert(path, is.String); | ||||||||||||||||
api.tokenFilePath = path; | ||||||||||||||||
return Promise.resolve(); | ||||||||||||||||
} | ||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused imports.
The
dduVim
,dduVimSource
,Denops
, andhelper
imports are not used in this file.Committable suggestion