Title: Semantic Highlighting breaks when rapidly typing due to improper cancellation · Issue #2216 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: Semantic Highlighting breaks when rapidly typing due to improper cancellation · Issue #2216 · PowerShell/PowerShellEditorServices
X Title: Semantic Highlighting breaks when rapidly typing due to improper cancellation · Issue #2216 · PowerShell/PowerShellEditorServices
Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this issue is with the extension itself and d...
Open Graph Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
X Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/2216
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Semantic Highlighting breaks when rapidly typing due to improper cancellation","articleBody":"### Prerequisites\n\n- [X] I have written a descriptive issue title.\n- [X] I have searched all [_open and closed_ issues](https://github.com/PowerShell/vscode-powershell/issues?q=is%3Aissue) to ensure it has not already been reported.\n- [X] I have read the [troubleshooting](https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md) guide.\n- [X] I am sure this issue is with the _extension itself_ and does not reproduce in a standalone [PowerShell](https://github.com/PowerShell/PowerShell/issues/new/choose) instance.\n- [X] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.\n- [X] If this is a security issue, I have read the [security issue reporting guidance](https://github.com/PowerShell/vscode-powershell/blob/main/SECURITY.md).\n\n### Summary\n\nLike the title says, semantic highlighting doesn't work for any new text you type, it only works for the text that was already there when you opened a file. Interestingly the VS code token inspect feature correctly lists the semantic color but the visuals aren't updated. Initially I assumed this was a bug in VS code itself but if I try it with the C# extension it works perfectly fine in VS code so they must be doing something different from this extension.\r\nHere's a clip that demonstrates the issue:\r\n\r\nhttps://github.com/user-attachments/assets/1ea3f679-ad4d-413e-97f1-4e4a17d9b610\r\n\r\n\n\n### PowerShell Version\n\n```console\nName Value\r\n---- -----\r\nPSVersion 7.5.0-preview.5\r\nPSEdition Core\r\nGitCommitId 7.5.0-preview.5\r\nOS Microsoft Windows 10.0.19045\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\nName : Visual Studio Code Host\r\nVersion : 2024.5.0\r\nInstanceId : 0de14edd-e7a3-4dcc-9ad1-f833dc86ffca\r\nUI : System.Management.Automation.Internal.Host.InternalHostUserInterface\r\nCurrentCulture : da-DK\r\nCurrentUICulture : da-DK\r\nPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy\r\nDebuggerEnabled : True\r\nIsRunspacePushed : False\r\nRunspace : System.Management.Automation.Runspaces.LocalRunspace\n```\n\n\n### Visual Studio Code Version\n\n```console\n1.96.0-insider\r\n19fabc20e35c89915c772116503a079554166a3f\r\nx64\n```\n\n\n### Extension Version\n\n```console\nms-vscode.powershell@2024.5.0\n```\n\n\n### Steps to Reproduce\n\nEnable semantic highlighting with colors that don't match the colors from the textmate highlighting and start typing.\n\n### Visuals\n\n_No response_\n\n### Logs\n\n_No response_","author":{"url":"https://github.com/MartinGC94","@type":"Person","name":"MartinGC94"},"datePublished":"2024-11-03T21:06:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/2216/PowerShellEditorServices/issues/2216"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:aa371de5-eac0-938f-884f-6aa6160b9ed2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A558:3DE6F6:728D1A:9E9986:6A57D9E2 |
| html-safe-nonce | 55ed26502c071ad480aa778c4ec61a3fd49fd41616da4200bbf36c6792f1225b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTU4OjNERTZGNjo3MjhEMUE6OUU5OTg2OjZBNTdEOUUyIiwidmlzaXRvcl9pZCI6IjU0NTQ1Mzg1MzI3NTE2NjE1MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d86ca2cebdfa38cec1f2536ba269236d35b9bc0d836f9ad700a3979c4307ca8b |
| hovercard-subject-tag | issue:2821733974 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShellEditorServices/2216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2076fcf731b4e555e22bad95640fd5a4a5eb712eb91d7be7cf60eeec118123e/PowerShell/PowerShellEditorServices/issues/2216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2076fcf731b4e555e22bad95640fd5a4a5eb712eb91d7be7cf60eeec118123e/PowerShell/PowerShellEditorServices/issues/2216 |
| og:image:alt | Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MartinGC94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 36031537 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShellEditorServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36031537 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShellEditorServices |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width