Skip to content

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Nov 27, 2023
1 parent 50c7e0e commit 6224407
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ obj
node_modules
out
.roslyn/
.roslynDevkit/
.roslynDevKit/
.omnisharp/
.omnisharp-*/
.vs/
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.logs/**
.nyc_output/**
!.roslyn/**
!.roslynDevkit/**
!.roslynDevKit/**
!.omnisharp/**
!.razor/**
!.razoromnisharp/**
Expand Down
12 changes: 6 additions & 6 deletions src/lsptoolshost/roslynLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ export class RoslynLanguageServer {
_channel.appendLine('Activating C# + C# Dev Kit...');
}

const csharpDevkitArgs = this.getCSharpDevkitExportArgs();
args = args.concat(csharpDevkitArgs);
const csharpDevKitArgs = this.getCSharpDevKitExportArgs();
args = args.concat(csharpDevKitArgs);

await this.setupDevKitEnvironment(env, csharpDevkitExtension);
} else {
Expand Down Expand Up @@ -756,17 +756,17 @@ export class RoslynLanguageServer {
);
}

private static getCSharpDevkitExportArgs(): string[] {
private static getCSharpDevKitExportArgs(): string[] {
const args: string[] = [];

const clientRoot = __dirname;
const devkitDepsPath = path.join(
const devKitDepsPath = path.join(
clientRoot,
'..',
'.roslynDevkit',
'.roslynDevKit',
'Microsoft.VisualStudio.LanguageServices.DevKit.dll'
);
args.push('--extension', devkitDepsPath);
args.push('--extension', devKitDepsPath);

args.push('--sessionId', getSessionId());
return args;
Expand Down
18 changes: 9 additions & 9 deletions tasks/offlinePackagingTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
languageServerDirectory,
nugetTempPath,
rootPath,
devkitDependenciesDirectory,
devKitDependenciesDirectory,
} from '../tasks/projectPaths';
import { getPackageJSON } from '../tasks/packageJson';
import { createPackageAsync } from '../tasks/vsceTasks';
Expand Down Expand Up @@ -124,8 +124,8 @@ gulp.task(
await acquireRoslyn(packageJSON, p.platformInfo, true);
}

// Also pull in the Roslyn devkit dependencies nuget package.
await acquireRoslynDevkit(packageJSON, true);
// Also pull in the Roslyn DevKit dependencies nuget package.
await acquireRoslynDevKit(packageJSON, true);
}, 'installDependencies')
);

Expand All @@ -139,9 +139,9 @@ async function installRoslyn(packageJSON: any, platformInfo?: PlatformInformatio
languageServerDirectory
);

// Install Roslyn Devkit dependencies.
const roslynDevkitPackagePath = await acquireRoslynDevkit(packageJSON, false);
await installNuGetPackage(roslynDevkitPackagePath, 'content', devkitDependenciesDirectory);
// Install Roslyn DevKit dependencies.
const roslynDevKitPackagePath = await acquireRoslynDevKit(packageJSON, false);
await installNuGetPackage(roslynDevKitPackagePath, 'content', devKitDependenciesDirectory);
}

async function installNuGetPackage(pathToPackage: string, contentPath: string, outputPath: string) {
Expand Down Expand Up @@ -193,10 +193,10 @@ async function acquireRoslyn(
return { packagePath, serverPlatform };
}

async function acquireRoslynDevkit(packageJSON: any, interactive: boolean): Promise<string> {
async function acquireRoslynDevKit(packageJSON: any, interactive: boolean): Promise<string> {
const roslynVersion = packageJSON.defaults.roslyn;
const packagePath = await acquireNugetPackage(
`Microsoft.VisualStudio.LanguageServices.Devkit`,
`Microsoft.VisualStudio.LanguageServices.DevKit`,
roslynVersion,
interactive
);
Expand Down Expand Up @@ -333,7 +333,7 @@ async function cleanAsync() {
'.debugger',
'.razor',
languageServerDirectory,
devkitDependenciesDirectory,
devKitDependenciesDirectory,
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tasks/projectPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const jestPath = path.join(nodeModulesPath, 'jest', 'bin', 'jest');
export const packedVsixOutputRoot = commandLineOptions.outputFolder || path.join(rootPath, 'vsix');
export const nugetTempPath = path.join(rootPath, 'out', '.nuget');
export const languageServerDirectory = path.join(rootPath, '.roslyn');
export const devkitDependenciesDirectory = path.join(rootPath, '.roslynDevkit');
export const devKitDependenciesDirectory = path.join(rootPath, '.roslynDevKit');

export const codeExtensionPath = commandLineOptions.codeExtensionPath || rootPath;

Expand Down

0 comments on commit 6224407

Please sign in to comment.