Skip to content

Commit 75d7cfc

Browse files
committed
rename xamlDesignTools -> xamlTools
1 parent 1b51a03 commit 75d7cfc

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ node_modules
44
out
55
.roslyn/
66
.roslynDevKit/
7-
.xamlDesignTools/
7+
.xamlTools/
88
.omnisharp/
99
.omnisharp-*/
1010
.vs/

package.json

Lines changed: 5 additions & 5 deletions
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-
"xamlDesignTools": "17.11.34811.206"
45+
"xamlTools": "17.11.34811.206"
4646
},
4747
"main": "./dist/extension",
4848
"l10n": "./l10n",
@@ -1630,8 +1630,8 @@
16301630
"description": "%configuration.dotnet.server.componentPaths.roslynDevKit%",
16311631
"type": "string"
16321632
},
1633-
"xamlDesignTools": {
1634-
"description": "%configuration.dotnet.server.componentPaths.xamlDesignTools%",
1633+
"xamlTools": {
1634+
"description": "%configuration.dotnet.server.componentPaths.xamlTools%",
16351635
"type": "string"
16361636
}
16371637
},
@@ -1682,11 +1682,11 @@
16821682
"default": null,
16831683
"description": "%configuration.dotnet.server.crashDumpPath%"
16841684
},
1685-
"dotnet.server.enableXamlIntellisense": {
1685+
"dotnet.server.enableXamlTools": {
16861686
"scope": "machine-overridable",
16871687
"type": "boolean",
16881688
"default": false,
1689-
"description": "%configuration.dotnet.server.enableXamlIntellisense%"
1689+
"description": "%configuration.dotnet.server.enableXamlTools%"
16901690
},
16911691
"dotnet.projects.binaryLogPath": {
16921692
"scope": "machine-overridable",

package.nls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"configuration.dotnet.server.path": "Specifies the absolute path to the server (LSP or O#) executable. When left empty the version pinned to the C# Extension is used. (Previously `omnisharp.path`)",
2929
"configuration.dotnet.server.componentPaths": "Allows overriding the folder path for built in components of the language server (for example, override the .roslynDevKit path in the extension directory to use locally built components)",
3030
"configuration.dotnet.server.componentPaths.roslynDevKit": "Overrides the folder path for the .roslynDevKit component of the language server",
31-
"configuration.dotnet.server.componentPaths.xamlDesignTools": "Overrides the folder path for the .xamlDesignTools component of the language server",
31+
"configuration.dotnet.server.componentPaths.xamlTools": "Overrides the folder path for the .xamlTools component of the language server",
3232
"configuration.dotnet.server.startTimeout": "Specifies a timeout (in ms) for the client to successfully start and connect to the language server.",
3333
"configuration.dotnet.server.waitForDebugger": "Passes the --debug flag when launching the server to allow a debugger to be attached. (Previously `omnisharp.waitForDebugger`)",
3434
"configuration.dotnet.server.trace": "Sets the logging level for the language server",
3535
"configuration.dotnet.server.extensionPaths": "Override for path to language server --extension arguments",
3636
"configuration.dotnet.server.crashDumpPath": "Sets a folder path where crash dumps are written to if the language server crashes. Must be writeable by the user.",
37-
"configuration.dotnet.server.enableXamlIntellisense": "[Experimental] Enables Intellisense for XAML files when using C# Dev Kit",
37+
"configuration.dotnet.server.enableXamlTools": "[Experimental] Enables XAML tools when using C# Dev Kit",
3838
"configuration.dotnet.projects.enableAutomaticRestore": "Enables automatic NuGet restore if the extension detects assets are missing.",
3939
"configuration.dotnet.preferCSharpExtension": "Forces projects to load with the C# extension only. This can be useful when using legacy project types that are not supported by C# Dev Kit. (Requires window reload)",
4040
"configuration.dotnet.implementType.insertionBehavior": "The insertion location of properties, events, and methods When implement interface or abstract class.",

src/lsptoolshost/builtInComponents.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export const componentInfo: { [key: string]: ComponentInfo } = {
1919
optionName: 'roslynDevKit',
2020
componentDllPaths: ['Microsoft.VisualStudio.LanguageServices.DevKit.dll'],
2121
},
22-
xamlDesignTools: {
23-
defaultFolderName: '.xamlDesignTools',
24-
optionName: 'xamlDesignTools',
22+
xamlTools: {
23+
defaultFolderName: '.xamlTools',
24+
optionName: 'xamlTools',
2525
componentDllPaths: [
2626
path.join('lib', 'netstandard2.0', 'Microsoft.VisualStudio.DesignTools.CodeAnalysis.dll'),
2727
path.join('lib', 'netstandard2.0', 'Microsoft.VisualStudio.DesignTools.CodeAnalysis.Diagnostics.dll'),

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ export class RoslynLanguageServer {
820820
args.push('--sessionId', getSessionId());
821821

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

src/shared/options.ts

Lines changed: 4 additions & 4 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 enableXamlIntellisense: boolean;
81+
readonly enableXamlTools: boolean;
8282
}
8383

8484
export interface RazorOptions {
@@ -402,8 +402,8 @@ class LanguageServerOptionsImpl implements LanguageServerOptions {
402402
public get componentPaths() {
403403
return readOption<{ [key: string]: string }>('dotnet.server.componentPaths', {});
404404
}
405-
public get enableXamlIntellisense() {
406-
return readOption<boolean>('dotnet.server.enableXamlIntellisense', false);
405+
public get enableXamlTools() {
406+
return readOption<boolean>('dotnet.server.enableXamlTools', false);
407407
}
408408
}
409409

@@ -499,5 +499,5 @@ export const LanguageServerOptionsThatTriggerReload: ReadonlyArray<keyof Languag
499499
'documentSelector',
500500
'preferCSharpExtension',
501501
'componentPaths',
502-
'enableXamlIntellisense',
502+
'enableXamlTools',
503503
];

tasks/offlinePackagingTasks.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
nugetTempPath,
2525
rootPath,
2626
devKitDependenciesDirectory,
27-
xamlDesignToolsDirectory,
27+
xamlToolsDirectory,
2828
} from '../tasks/projectPaths';
2929
import { getPackageJSON } from '../tasks/packageJson';
3030
import { createPackageAsync } from '../tasks/vsceTasks';
@@ -78,11 +78,11 @@ export const nugetPackageInfo: { [key: string]: NugetPackageInfo } = {
7878
getPackageContentPath: (_platformInfo) => 'content',
7979
vsixOutputPath: devKitDependenciesDirectory,
8080
},
81-
xamlDesignTools: {
81+
xamlTools: {
8282
getPackageName: (_platformInfo) => 'Microsoft.VisualStudio.DesignToolsBase',
83-
packageJsonName: 'xamlDesignTools',
83+
packageJsonName: 'xamlTools',
8484
getPackageContentPath: (_platformInfo) => '',
85-
vsixOutputPath: xamlDesignToolsDirectory,
85+
vsixOutputPath: xamlToolsDirectory,
8686
},
8787
};
8888

tasks/projectPaths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const packedVsixOutputRoot = commandLineOptions.outputFolder || path.join
1717
export const nugetTempPath = path.join(rootPath, 'out', '.nuget');
1818
export const languageServerDirectory = path.join(rootPath, '.roslyn');
1919
export const devKitDependenciesDirectory = path.join(rootPath, componentInfo.roslynDevKit.defaultFolderName);
20-
export const xamlDesignToolsDirectory = path.join(rootPath, componentInfo.xamlDesignTools.defaultFolderName);
20+
export const xamlToolsDirectory = path.join(rootPath, componentInfo.xamlTools.defaultFolderName);
2121

2222
export const codeExtensionPath = commandLineOptions.codeExtensionPath || rootPath;
2323

0 commit comments

Comments
 (0)