Skip to content

Commit 253f86a

Browse files
authored
Remove insider prompt (#18810)
* Remove pre-release prompt * Add news item
1 parent 5894555 commit 253f86a

File tree

6 files changed

+2
-146
lines changed

6 files changed

+2
-146
lines changed

news/3 Code Health/18809.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove prompt to recommend users in old insiders program to switch to pre-release.

package.nls.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,5 @@
216216
"TensorBoard.launchNativeTensorBoardSessionCodeLens": "▶ Launch TensorBoard Session",
217217
"TensorBoard.enterRemoteUrl": "Enter remote URL",
218218
"TensorBoard.enterRemoteUrlDetail": "Enter a URL pointing to a remote directory containing your TensorBoard log files",
219-
"SwitchToDefaultLS.bannerMessage": "The Microsoft Python Language Server has reached end of life. Your language server has been set to the default for Python in VS Code, Pylance. If you’d like to change your language server, you can learn about how to do so [here](https://devblogs.microsoft.com/python/python-in-visual-studio-code-may-2021-release/#configuring-your-language-server). Read Pylance’s license [here](https://marketplace.visualstudio.com/items/ms-python.vscode-pylance/license).",
220-
"SwitchToPrereleaseExtension.bannerMessage": "We now have a new way to get pre-release (insiders) version of the Python extension. See [here](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions) to learn more.",
221-
"SwitchToPrereleaseExtension.installPreRelease": "Install Pre-Release",
222-
"SwitchToPrereleaseExtension.installStable": "Install Stable"
219+
"SwitchToDefaultLS.bannerMessage": "The Microsoft Python Language Server has reached end of life. Your language server has been set to the default for Python in VS Code, Pylance. If you’d like to change your language server, you can learn about how to do so [here](https://devblogs.microsoft.com/python/python-in-visual-studio-code-may-2021-release/#configuring-your-language-server). Read Pylance’s license [here](https://marketplace.visualstudio.com/items/ms-python.vscode-pylance/license)."
223220
}

src/client/application/diagnostics/checks/switchToPreReleaseExtension.ts

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/client/application/diagnostics/serviceRegistry.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ import {
4040
SwitchToDefaultLanguageServerDiagnosticService,
4141
SwitchToDefaultLanguageServerDiagnosticServiceId,
4242
} from './checks/switchToDefaultLS';
43-
import {
44-
SwitchToPreReleaseExtensionDiagnosticService,
45-
SwitchToPreReleaseExtensionDiagnosticServiceId,
46-
} from './checks/switchToPreReleaseExtension';
4743
import { DiagnosticsCommandFactory } from './commands/factory';
4844
import { IDiagnosticsCommandFactory } from './commands/types';
4945
import { DiagnosticFilterService } from './filter';
@@ -115,12 +111,6 @@ export function registerTypes(serviceManager: IServiceManager): void {
115111
SwitchToDefaultLanguageServerDiagnosticServiceId,
116112
);
117113

118-
serviceManager.addSingleton<IDiagnosticsService>(
119-
IDiagnosticsService,
120-
SwitchToPreReleaseExtensionDiagnosticService,
121-
SwitchToPreReleaseExtensionDiagnosticServiceId,
122-
);
123-
124114
serviceManager.addSingleton<IDiagnosticsCommandFactory>(IDiagnosticsCommandFactory, DiagnosticsCommandFactory);
125115
serviceManager.addSingleton<IApplicationDiagnostics>(IApplicationDiagnostics, ApplicationDiagnostics);
126116
}

src/client/common/utils/localize.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,6 @@ export namespace SwitchToDefaultLS {
535535
);
536536
}
537537

538-
export namespace SwitchToPrereleaseExtension {
539-
export const bannerMessage = localize(
540-
'SwitchToPrereleaseExtension.bannerMessage',
541-
'We now have a new way to get pre-release/insiders version of the Python extension. See [here](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions) to learn more.',
542-
);
543-
export const installPreRelease = localize('SwitchToPrereleaseExtension.installPreRelease', 'Install Pre-Release');
544-
export const installStable = localize('SwitchToPrereleaseExtension.installStable', 'Install Stable');
545-
}
546-
547538
function localize(key: string, defValue?: string) {
548539
// Return a pointer to function so that we refetch it on each call.
549540
return (): string => getString(key, defValue);

src/test/application/diagnostics/serviceRegistry.unit.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ import {
4141
SwitchToDefaultLanguageServerDiagnosticService,
4242
SwitchToDefaultLanguageServerDiagnosticServiceId,
4343
} from '../../../client/application/diagnostics/checks/switchToDefaultLS';
44-
import {
45-
SwitchToPreReleaseExtensionDiagnosticService,
46-
SwitchToPreReleaseExtensionDiagnosticServiceId,
47-
} from '../../../client/application/diagnostics/checks/switchToPreReleaseExtension';
4844
import { DiagnosticsCommandFactory } from '../../../client/application/diagnostics/commands/factory';
4945
import { IDiagnosticsCommandFactory } from '../../../client/application/diagnostics/commands/types';
5046
import { DiagnosticFilterService } from '../../../client/application/diagnostics/filter';
@@ -144,14 +140,6 @@ suite('Application Diagnostics - Register classes in IOC Container', () => {
144140
SwitchToDefaultLanguageServerDiagnosticServiceId,
145141
),
146142
);
147-
verify(
148-
serviceManager.addSingleton<IDiagnosticsService>(
149-
IDiagnosticsService,
150-
SwitchToPreReleaseExtensionDiagnosticService,
151-
SwitchToPreReleaseExtensionDiagnosticServiceId,
152-
),
153-
);
154-
155143
verify(
156144
serviceManager.addSingleton<IDiagnosticsCommandFactory>(
157145
IDiagnosticsCommandFactory,

0 commit comments

Comments
 (0)