Skip to content

Commit 3706f12

Browse files
committed
Update to latest XAML package and fix some more naming
1 parent 230d012 commit 3706f12

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"razor": "7.0.0-preview.24178.4",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",
4444
"razorTelemetry": "7.0.0-preview.24178.4",
45-
"xamlTools": "17.11.34811.206"
45+
"xamlTools": "17.11.34815.8"
4646
},
4747
"main": "./dist/extension",
4848
"l10n": "./l10n",

src/lsptoolshost/builtInComponents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export const componentInfo: { [key: string]: ComponentInfo } = {
2323
defaultFolderName: '.xamlTools',
2424
optionName: 'xamlTools',
2525
componentDllPaths: [
26-
path.join('lib', 'netstandard2.0', 'Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll'),
27-
path.join('lib', 'netstandard2.0', 'Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll'),
26+
'Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll',
27+
'Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll',
2828
],
2929
},
3030
};

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ export class RoslynLanguageServer {
820820
args.push('--sessionId', getSessionId());
821821

822822
// Also include the Xaml Dev Kit extensions, if enabled.
823-
if (languageServerOptions.enableXamlTools) {
823+
if (languageServerOptions.enableXamlToolsPreview) {
824824
getComponentPaths('xamlTools', languageServerOptions).forEach((path) =>
825825
additionalExtensionPaths.push(path)
826826
);

src/shared/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface LanguageServerOptions {
7878
readonly analyzerDiagnosticScope: string;
7979
readonly compilerDiagnosticScope: string;
8080
readonly componentPaths: { [key: string]: string } | null;
81-
readonly enableXamlTools: boolean;
81+
readonly enableXamlToolsPreview: boolean;
8282
}
8383

8484
export interface RazorOptions {
@@ -402,7 +402,7 @@ class LanguageServerOptionsImpl implements LanguageServerOptions {
402402
public get componentPaths() {
403403
return readOption<{ [key: string]: string }>('dotnet.server.componentPaths', {});
404404
}
405-
public get enableXamlTools() {
405+
public get enableXamlToolsPreview() {
406406
return readOption<boolean>('dotnet.enableXamlToolsPreview', false);
407407
}
408408
}
@@ -499,5 +499,5 @@ export const LanguageServerOptionsThatTriggerReload: ReadonlyArray<keyof Languag
499499
'documentSelector',
500500
'preferCSharpExtension',
501501
'componentPaths',
502-
'enableXamlTools',
502+
'enableXamlToolsPreview',
503503
];

tasks/offlinePackagingTasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const nugetPackageInfo: { [key: string]: NugetPackageInfo } = {
8181
xamlTools: {
8282
getPackageName: (_platformInfo) => 'Microsoft.VisualStudio.DesignToolsBase',
8383
packageJsonName: 'xamlTools',
84-
getPackageContentPath: (_platformInfo) => '',
84+
getPackageContentPath: (_platformInfo) => 'content',
8585
vsixOutputPath: xamlToolsDirectory,
8686
},
8787
};

0 commit comments

Comments
 (0)