Skip to content

Commit

Permalink
fix: re-fix windows path resolution
Browse files Browse the repository at this point in the history
close #1304
  • Loading branch information
johnsoncodehk committed Jul 16, 2022
1 parent 6a2a2f7 commit b52e6dc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
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 * as path from 'path';
import { posix 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 * as path from 'path';
import { posix 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/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 * as path from 'path';
import { posix 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
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 * as path from 'path';
import { posix 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 * as path from 'path';
import { posix 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 * as path from 'path';
import { posix 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 * as path from 'path';
import { posix as path } from 'path';
import type { VueCompilerOptions } from '../types';

export function createParsedCommandLine(
Expand Down

0 comments on commit b52e6dc

Please sign in to comment.