diff --git a/client/client.ts b/client/client.ts index 671dc8eef9..c7d845ca0a 100644 --- a/client/client.ts +++ b/client/client.ts @@ -1,4 +1,4 @@ -import * as vscode from 'vscode'; +import vscode from 'vscode'; import { LanguageClient, RevealOutputChannelOn, diff --git a/client/commands/generateGrammarCommand.ts b/client/commands/generateGrammarCommand.ts index b651e0486f..63580d86b8 100644 --- a/client/commands/generateGrammarCommand.ts +++ b/client/commands/generateGrammarCommand.ts @@ -1,4 +1,4 @@ -import * as vscode from 'vscode'; +import vscode from 'vscode'; import { writeFileSync } from 'fs'; import { resolve } from 'path'; import { getGeneratedGrammar } from '../grammar'; diff --git a/client/commands/openUserScaffoldSnippetFolderCommand.ts b/client/commands/openUserScaffoldSnippetFolderCommand.ts index ab88245449..7ee18e3160 100644 --- a/client/commands/openUserScaffoldSnippetFolderCommand.ts +++ b/client/commands/openUserScaffoldSnippetFolderCommand.ts @@ -1,5 +1,5 @@ -import * as vscode from 'vscode'; -import * as fs from 'fs'; +import vscode from 'vscode'; +import fs from 'fs'; export function generateOpenUserScaffoldSnippetFolderCommand(globalSnippetDir: string) { return async () => { diff --git a/client/commands/virtualFileCommand.ts b/client/commands/virtualFileCommand.ts index 98aebe39dc..ac1eafd7b4 100644 --- a/client/commands/virtualFileCommand.ts +++ b/client/commands/virtualFileCommand.ts @@ -1,13 +1,11 @@ -import * as vscode from 'vscode'; +import vscode from 'vscode'; import { LanguageClient } from 'vscode-languageclient'; let fileName = ''; let virtualFileSource = ''; let prettySourceMap = ''; -const separator = Array(20) - .fill('=') - .join(''); +const separator = Array(20).fill('=').join(''); const onDidChangeEmitter = new vscode.EventEmitter(); diff --git a/client/vueMain.ts b/client/vueMain.ts index 8edc7f0478..081638791c 100644 --- a/client/vueMain.ts +++ b/client/vueMain.ts @@ -1,4 +1,4 @@ -import * as vscode from 'vscode'; +import vscode from 'vscode'; import { LanguageClient } from 'vscode-languageclient'; import { generateGrammarCommandHandler } from './commands/generateGrammarCommand'; import { registerLanguageConfigurations } from './languages'; diff --git a/server/src/modes/style/index.ts b/server/src/modes/style/index.ts index 16772a0130..2edd7a2bcb 100644 --- a/server/src/modes/style/index.ts +++ b/server/src/modes/style/index.ts @@ -6,7 +6,7 @@ import { LanguageService } from 'vscode-css-languageservice'; import _ from 'lodash'; -import * as emmet from 'vscode-emmet-helper'; +import emmet from 'vscode-emmet-helper'; import { Priority } from './emmet'; import { LanguageModelCache, getLanguageModelCache } from '../../embeddedSupport/languageModelCache'; diff --git a/server/src/modes/style/sass/sassLanguageMode.ts b/server/src/modes/style/sass/sassLanguageMode.ts index ca9f1ec505..070fd602be 100644 --- a/server/src/modes/style/sass/sassLanguageMode.ts +++ b/server/src/modes/style/sass/sassLanguageMode.ts @@ -6,7 +6,7 @@ import { TextEdit, Position } from 'vscode-css-languageservice'; import { SassFormatter, SassFormatterConfig } from 'sass-formatter'; -import * as emmet from 'vscode-emmet-helper'; +import emmet from 'vscode-emmet-helper'; import { Priority } from '../emmet'; export class SassLanguageMode implements LanguageMode { diff --git a/server/src/modes/style/stylus/index.ts b/server/src/modes/style/stylus/index.ts index af10bd11f7..0de2aae949 100644 --- a/server/src/modes/style/stylus/index.ts +++ b/server/src/modes/style/stylus/index.ts @@ -1,5 +1,5 @@ import _ from 'lodash'; -import * as emmet from 'vscode-emmet-helper'; +import emmet from 'vscode-emmet-helper'; import { CompletionList, TextEdit } from 'vscode-languageserver-types'; import { IStylusSupremacy } from './stylus-supremacy'; diff --git a/server/src/modes/template/services/htmlCompletion.ts b/server/src/modes/template/services/htmlCompletion.ts index dab0e61249..60f4aeede1 100644 --- a/server/src/modes/template/services/htmlCompletion.ts +++ b/server/src/modes/template/services/htmlCompletion.ts @@ -11,7 +11,7 @@ import { import { HTMLDocument } from '../parser/htmlParser'; import { TokenType, createScanner, ScannerState } from '../parser/htmlScanner'; import { IHTMLTagProvider } from '../tagProviders'; -import * as emmet from 'vscode-emmet-helper'; +import emmet from 'vscode-emmet-helper'; import { NULL_COMPLETION } from '../../nullMode'; import { getModifierProvider, Modifier } from '../modifierProvider'; import { toMarkupContent } from '../../../utils/strings'; diff --git a/vti/src/cli.ts b/vti/src/cli.ts index 5b0f5803aa..dee05a3e57 100644 --- a/vti/src/cli.ts +++ b/vti/src/cli.ts @@ -16,11 +16,11 @@ import { import { Duplex } from 'stream'; import { VLS } from 'vls'; import { getInitParams } from './initParams'; -import * as fs from 'fs'; +import fs from 'fs'; import { URI } from 'vscode-uri'; -import * as glob from 'glob'; -import * as path from 'path'; -import * as chalk from 'chalk'; +import glob from 'glob'; +import path from 'path'; +import chalk from 'chalk'; class NullLogger implements Logger { error(_message: string): void {}