Skip to content

Commit

Permalink
Update to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
josa42 committed Jan 16, 2021
1 parent 0afb550 commit 8b608bd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 835 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/josa42/coc-docker.git"
},
"engines": {
"coc": "^0.0.79"
"coc": "^0.0.80"
},
"keywords": [
"coc.nvim",
Expand Down Expand Up @@ -55,7 +55,7 @@
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"coc-dev-tools": "^0.1.0",
"coc.nvim": "0.0.79",
"coc.nvim": "0.0.80",
"eslint": "^7.13.0",
"eslint-config-josa-typescript": "^0.1.2",
"rimraf": "^3.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/dockerCompose/dockerComposeCompletionItemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
'use strict'

import { CompletionItemProvider, workspace } from 'coc.nvim'
import { TextDocument, CompletionItem, CompletionItemKind, Position, CompletionList } from "vscode-languageserver-protocol"
import { TextDocument, CompletionItem, CompletionItemKind, Position, CompletionList, CancellationToken } from "vscode-languageserver-protocol"
import composeVersions from './dockerComposeKeyInfo'
import { KeyInfo } from './types'
import { SuggestSupportHelper } from '../utils/suggestSupportHelper'

export class DockerComposeCompletionItemProvider implements CompletionItemProvider {
async provideCompletionItems(textDocument: TextDocument, position: Position /*, token: CancellationToken, context?: CompletionContext */): Promise<CompletionItem[] | CompletionList> {
async provideCompletionItems(textDocument: TextDocument, position: Position, token: CancellationToken): Promise<CompletionItem[]> {

const hub = new SuggestSupportHelper()

Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { TransportKind, ExtensionContext, LanguageClient, ServerOptions, commands, workspace, services, languages, LanguageClientOptions } from 'coc.nvim'
import { TransportKind, ExtensionContext, LanguageClient, ServerOptions, commands, window, workspace, services, languages, LanguageClientOptions } from 'coc.nvim'
import { DockerComposeCompletionItemProvider } from './dockerCompose/dockerComposeCompletionItemProvider'

interface DockerConfig {
Expand Down Expand Up @@ -31,7 +31,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
services.registLanguageClient(client),
commands.registerCommand("docker.version", async () => {
const v = require(path.resolve(__dirname, '..', 'package.json')).version
workspace.showMessage(`Version: ${v}`, 'more')
window.showMessage(`Version: ${v}`, 'more')
})
)

Expand Down
Loading

0 comments on commit 8b608bd

Please sign in to comment.