Skip to content

Commit

Permalink
Remove more * as import
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Sep 24, 2020
1 parent b427cc7 commit 118a274
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion client/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as vscode from 'vscode';
import vscode from 'vscode';
import {
LanguageClient,
RevealOutputChannelOn,
Expand Down
2 changes: 1 addition & 1 deletion client/commands/generateGrammarCommand.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions client/commands/openUserScaffoldSnippetFolderCommand.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down
6 changes: 2 additions & 4 deletions client/commands/virtualFileCommand.ts
Original file line number Diff line number Diff line change
@@ -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<vscode.Uri>();

Expand Down
2 changes: 1 addition & 1 deletion client/vueMain.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion server/src/modes/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion server/src/modes/style/sass/sassLanguageMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion server/src/modes/style/stylus/index.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion server/src/modes/template/services/htmlCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 4 additions & 4 deletions vti/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 118a274

Please sign in to comment.