Skip to content

Commit

Permalink
Import TextDocument from vscode-languageserver-textdocument
Browse files Browse the repository at this point in the history
Signed-off-by: Remy Suen <[email protected]>
  • Loading branch information
rcjsuen committed Sep 10, 2023
1 parent dcc086b commit 7f86543
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"dockerfile-ast": "0.6.1",
"dockerfile-utils": "0.15.0",
"vscode-languageserver-textdocument": "1.0.8",
"vscode-languageserver-types": "3.17.3"
},
"main": "./lib/main.js",
Expand Down
3 changes: 2 additions & 1 deletion src/dockerAssist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, TextEdit, Range, Position,
TextEdit, Range, Position,
CompletionItem, CompletionItemKind, CompletionItemTag, InsertTextFormat
} from 'vscode-languageserver-types';
import { Util, KEYWORDS } from './docker';
Expand Down
3 changes: 2 additions & 1 deletion src/dockerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { TextDocument, Command, Diagnostic, Range, TextEdit } from 'vscode-languageserver-types';
import { TextDocument } from 'vscode-languageserver-textdocument';
import { Command, Diagnostic, Range, TextEdit } from 'vscode-languageserver-types';
import { ValidationCode } from 'dockerfile-utils';
import { CommandIds } from './main';

Expand Down
3 changes: 2 additions & 1 deletion src/dockerFolding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { Position, Range, TextDocument, FoldingRange, FoldingRangeKind, uinteger } from 'vscode-languageserver-types';
import { TextDocument } from 'vscode-languageserver-textdocument';
import { Position, Range, FoldingRange, FoldingRangeKind, uinteger } from 'vscode-languageserver-types';
import { DockerfileParser } from 'dockerfile-ast';

export class DockerFolding {
Expand Down
3 changes: 2 additions & 1 deletion src/dockerFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, TextEdit, Position, Range, FormattingOptions,
TextEdit, Position, Range, FormattingOptions,
} from 'vscode-languageserver-types';
import { DockerfileParser } from 'dockerfile-ast';

Expand Down
3 changes: 2 additions & 1 deletion src/dockerHighlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, Position, DocumentHighlight, DocumentHighlightKind
Position, DocumentHighlight, DocumentHighlightKind
} from 'vscode-languageserver-types';
import { DockerfileParser, From } from 'dockerfile-ast';
import { DockerDefinition } from './dockerDefinition';
Expand Down
3 changes: 2 additions & 1 deletion src/dockerSemanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* ------------------------------------------------------------------------------------------ */
'use strict';

import { Range, TextDocument, Position, SemanticTokens, SemanticTokenTypes, SemanticTokenModifiers } from 'vscode-languageserver-types';
import { TextDocument } from 'vscode-languageserver-textdocument';
import { Range, Position, SemanticTokens, SemanticTokenTypes, SemanticTokenModifiers } from 'vscode-languageserver-types';
import { DockerfileParser, Keyword, Comment, Instruction, Line, Healthcheck, ModifiableInstruction, From, Onbuild, PropertyInstruction, Argument, Variable } from 'dockerfile-ast';
import { Dockerfile } from 'dockerfile-ast';
import { Util } from './docker';
Expand Down
3 changes: 2 additions & 1 deletion src/dockerSignatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
* Copyright (c) Remy Suen. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, Position, SignatureHelp, SignatureInformation
Position, SignatureHelp, SignatureInformation
} from 'vscode-languageserver-types';
import { PlainTextDocumentation } from './dockerPlainText';
import {
Expand Down
3 changes: 2 additions & 1 deletion src/languageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
import { DockerfileLanguageService, ILogger, Capabilities, CompletionItemCapabilities, FormatterSettings } from "./main";
import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, Position, CompletionItem, Range, CodeActionContext, Command, TextDocumentIdentifier, SemanticTokens, Location, DocumentHighlight, SymbolInformation, SignatureHelp, DocumentLink, TextEdit, Hover, FormattingOptions, Diagnostic, MarkupKind, FoldingRange, CompletionItemTag
Position, CompletionItem, Range, CodeActionContext, Command, TextDocumentIdentifier, SemanticTokens, Location, DocumentHighlight, SymbolInformation, SignatureHelp, DocumentLink, TextEdit, Hover, FormattingOptions, Diagnostic, MarkupKind, FoldingRange, CompletionItemTag
} from "vscode-languageserver-types";
import * as DockerfileUtils from 'dockerfile-utils';
import { DockerAssist } from "./dockerAssist";
Expand Down
3 changes: 2 additions & 1 deletion test/dockerAssist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* ------------------------------------------------------------------------------------------ */
import * as assert from "assert";

import { TextDocument } from 'vscode-languageserver-textdocument';
import {
TextDocument, Position, CompletionItem, CompletionItemKind, InsertTextFormat, MarkupContent, MarkupKind, CompletionItemTag, TextEdit
Position, CompletionItem, CompletionItemKind, InsertTextFormat, MarkupContent, MarkupKind, CompletionItemTag, TextEdit
} from 'vscode-languageserver-types';
import { KEYWORDS } from '../src/docker';
import { MarkdownDocumentation } from '../src/dockerMarkdown';
Expand Down

0 comments on commit 7f86543

Please sign in to comment.