-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide IntelliSense status information when using
github.dev
(micr…
…osoft/vscode-python#17658) * Provide IntelliSense status information when using github.dev * News entry * Update wording * PR reviews * Include proposed APIs for browser config * Include common module for browser config * Change how we detect * Change wording * Have same browser config as extension config * Revert "Have same browser config as extension config" This reverts commit 515003aee2fa4a44105f22c4749f1fa721be6bcf. * Revert "Change wording" This reverts commit dd64f24d4c4c8cb763d9fa3aa5a2eb5808b5af9b. * Revert "Change how we detect" This reverts commit ae5607994f30b54158315c72a46583e7cf286fb2. * Revert "Include common module for browser config" This reverts commit bf1815c9b8aaa9091c37d54cf010ff3bd46c8ab4. * Do not import from misc module * Detect how we check if property exists * Do not localize strings * Localize strings using new localize module * Remove outdated comment
- Loading branch information
Showing
6 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Provide IntelliSense status information when using `github.dev` or any other web platform. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
extensions/positron-python/src/client/browser/intellisenseStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
// IMPORTANT: Do not import any node fs related modules here, as they do not work in browser. | ||
import * as vscode from 'vscode'; | ||
import { LanguageService } from './localize'; | ||
|
||
export function createStatusItem(): vscode.Disposable { | ||
if ('createLanguageStatusItem' in vscode.languages) { | ||
const statusItem = vscode.languages.createLanguageStatusItem('python.projectStatus', { | ||
language: 'python', | ||
}); | ||
statusItem.name = LanguageService.statusItem.name(); | ||
statusItem.severity = vscode.LanguageStatusSeverity.Warning; | ||
statusItem.text = LanguageService.statusItem.text(); | ||
statusItem.detail = LanguageService.statusItem.detail(); | ||
statusItem.command = { | ||
title: 'Learn More', | ||
command: 'vscode.open', | ||
arguments: [vscode.Uri.parse('https://aka.ms/AAdzyh4')], | ||
}; | ||
return statusItem; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
return { dispose: () => {} }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
"./src/client/browser" | ||
"./src/client/browser", | ||
"./types/vscode.proposed.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters