Skip to content

Commit

Permalink
Revert "fix: vue file import path auto-complete not working on windows"
Browse files Browse the repository at this point in the history
This reverts commit bd8e2e1.
close #1554, close #1555, close #1556, close #1557, close #1558, close #1559
  • Loading branch information
johnsoncodehk committed Jul 11, 2022
1 parent 370eb02 commit 32b68be
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
@@ -1,5 +1,5 @@
import * as vscode from 'vscode';
import { posix as path } from 'path';
import * as path from 'path';
import * as fs from '../utils/fs';
import * as shared from '@volar/shared';
import { userPick } from './splitEditors';
Expand Down
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import { BaseLanguageClient } from 'vscode-languageclient';
import * as shared from '@volar/shared';
import { posix as path } from 'path';
import * as path from 'path';
import { takeOverModeEnabled } from '../common';

export async function register(cmd: string, context: vscode.ExtensionContext, languageClient: BaseLanguageClient) {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-language-service/src/index.ts
Expand Up @@ -31,7 +31,7 @@ import type * as ts from 'typescript/lib/tsserverlibrary';

export interface LanguageService extends ReturnType<typeof createLanguageService> { }
export { getSemanticTokenLegend } from './services/semanticTokens';
import { posix as path } from 'path';
import * as path from 'path';

export interface Settings {
getFormatOptions?(uri: string, options?: vscode.FormattingOptions): Promise<ts.FormatCodeSettings>;
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { TextDocument } from 'vscode-languageserver-textdocument';
import * as shared from '@volar/shared';
import * as vscode from 'vscode-languageserver-protocol';
import type * as ts from 'typescript/lib/tsserverlibrary';
import { posix as path } from 'path';
import * as path from 'path';
import * as PConst from '../protocol.const';
import { parseKindModifier } from '../utils/modifiers';
import * as typeConverters from '../utils/typeConverters';
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-vue-plugin/src/index.ts
@@ -1,7 +1,7 @@
import * as tsFaster from '@volar/typescript-faster';
import * as vueTs from '@volar/vue-typescript';
import { tsShared } from '@volar/vue-typescript';
import { posix as path } from 'path';
import * as path from 'path';
import * as apis from './apis';

const init: ts.server.PluginModuleFactory = (modules) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-code-gen/src/generators/script.ts
@@ -1,7 +1,7 @@
import { CodeGen } from '@volar/code-gen';
import * as SourceMaps from '@volar/source-map';
import { hyphenate } from '@vue/shared';
import { posix as path } from 'path';
import * as path from 'path';
import type * as templateGen from '../generators/template';
import type { ScriptRanges } from '../parsers/scriptRanges';
import type { ScriptSetupRanges } from '../parsers/scriptSetupRanges';
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/documentRegistry.ts
@@ -1,6 +1,6 @@
import type { EmbeddedFileMappingData } from '@volar/vue-code-gen';
import { computed, shallowReactive } from '@vue/reactivity';
import { posix as path } from 'path';
import * as path from 'path';
import * as localTypes from './utils/localTypes';
import type { EmbeddedFileSourceMap, Teleport } from './utils/sourceMaps';
import { untrack } from './utils/untrack';
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/lsContext.ts
@@ -1,4 +1,4 @@
import { posix as path } from 'path';
import * as path from 'path';
import type * as ts from 'typescript/lib/tsserverlibrary';
import { LanguageServiceHost } from './types';
import * as localTypes from './utils/localTypes';
Expand Down
Expand Up @@ -5,7 +5,7 @@ import * as templateGen from '@volar/vue-code-gen/out/generators/template';
import type { parseScriptSetupRanges } from '@volar/vue-code-gen/out/parsers/scriptSetupRanges';
import { walkInterpolationFragment } from '@volar/vue-code-gen/out/transform';
import { ComputedRef } from '@vue/reactivity';
import { posix as path } from 'path';
import * as path from 'path';
import { VueCompilerOptions } from '../types';
import { SearchTexts } from '../utils/string';
import { EmbeddedFile, useStyleCssClasses, useCssVars, VueLanguagePlugin } from '../sourceFile';
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-typescript/src/utils/ts.ts
@@ -1,5 +1,5 @@
import type * as ts from 'typescript/lib/tsserverlibrary';
import { posix as path } from 'path';
import * as path from 'path';
import type { VueCompilerOptions } from '../types';

export function createParsedCommandLine(
Expand Down

0 comments on commit 32b68be

Please sign in to comment.